View.php 301 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 <?php namespace BookStack; class View extends Model { protected $fillable = ['user_id', 'views']; /** * Get all owning viewable models. * @return \Illuminate\Database\Eloquent\Relations\MorphTo */ public function viewable() { return $this->morphTo(); } }