mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
21 lines
343 B
PHP
21 lines
343 B
PHP
|
<?php
|
||
|
|
||
|
namespace BookStack;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\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();
|
||
|
}
|
||
|
}
|