]> BookStack Code Mirror - bookstack/blob - app/Actions/Favourite.php
Fixed occurances of altered titles in search results
[bookstack] / app / Actions / Favourite.php
1 <?php
2
3 namespace BookStack\Actions;
4
5 use BookStack\Model;
6 use Illuminate\Database\Eloquent\Relations\MorphTo;
7
8 class Favourite extends Model
9 {
10     protected $fillable = ['user_id'];
11
12     /**
13      * Get the related model that can be favourited.
14      */
15     public function favouritable(): MorphTo
16     {
17         return $this->morphTo();
18     }
19 }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.