Basic bookmarks functionality

This commit is contained in:
Jonny Barnes 2017-10-10 15:58:07 +01:00
parent b840d164ed
commit 13e6ff1d0f
10 changed files with 173 additions and 0 deletions

View file

@ -23,6 +23,14 @@ class Tag extends Model
return $this->belongsToMany('App\Note');
}
/**
* The bookmarks that belong to the tag.
*/
public function bookmarks()
{
return $this->belongsToMany('App\Bookmark');
}
/**
* The attributes excluded from the model's JSON form.
*