mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 12:51:31 +08:00
19 lines
331 B
PHP
19 lines
331 B
PHP
<?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();
|
|
}
|
|
}
|