*/ protected $fillable = ['url', 'name', 'content']; /** @var array */ protected $casts = [ 'syndicates' => 'array', ]; public function tags(): BelongsToMany { return $this->belongsToMany('App\Models\Tag'); } protected function local_uri(): Attribute { return Attribute::get( get: fn () => config('app.url') . '/bookmarks/' . $this->id, ); } }