]> BookStack Code Mirror - bookstack/blob - app/View.php
Added mulit image-type compatability to manager & app and added scaled image selection
[bookstack] / app / View.php
1 <?php
2
3 namespace BookStack;
4
5 use Illuminate\Database\Eloquent\Model;
6
7 class View extends Model
8 {
9
10     protected $fillable = ['user_id', 'views'];
11
12     /**
13      * Get all owning viewable models.
14      * @return \Illuminate\Database\Eloquent\Relations\MorphTo
15      */
16     public function viewable()
17     {
18         return $this->morphTo();
19     }
20 }