'array', ]; /** * The tags that belong to the bookmark. * * @return BelongsToMany */ public function tags() { return $this->belongsToMany('App\Models\Tag'); } /** * The full url of a bookmark. * * @return string */ public function getLongurlAttribute(): string { return config('app.url') . '/bookmarks/' . $this->id; } }