Syndicate bookmarks via jobs

This commit is contained in:
Jonny Barnes 2017-10-13 13:45:57 +01:00
parent 917a673f05
commit f007b24065
9 changed files with 161 additions and 10 deletions

View file

@ -20,4 +20,12 @@ class Bookmark extends Model
{
return $this->belongsToMany('App\Tag');
}
/**
* The full url of a bookmark
*/
public function getLongurlAttribute()
{
return config('app.url') . '/bookmarks/' . $this->id;
}
}