]> BookStack Code Mirror - bookstack/blob - app/Actions/View.php
Started addition of favourite system
[bookstack] / app / Actions / View.php
1 <?php namespace BookStack\Actions;
2
3 use BookStack\Model;
4 use Illuminate\Database\Eloquent\Relations\MorphTo;
5
6 class View extends Model
7 {
8
9     protected $fillable = ['user_id', 'views'];
10
11     /**
12      * Get all owning viewable models.
13      */
14     public function viewable(): MorphTo
15     {
16         return $this->morphTo();
17     }
18 }