BookStack/app/View.php

17 lines
301 B
PHP
Raw Normal View History

<?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();
}
}