1 <?php namespace BookStack\Actions;
4 use Illuminate\Database\Eloquent\Relations\MorphTo;
6 class Favourite extends Model
8 protected $fillable = ['user_id'];
11 * Get the related model that can be favourited.
13 public function favouritable(): MorphTo
15 return $this->morphTo();