1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-10-30 23:52:40 +01:00
BookStack/app/Actions/View.php

19 lines
331 B
PHP
Raw Normal View History

<?php namespace BookStack\Actions;
use BookStack\Model;
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();
}
}