mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-29 20:23:52 +08:00
19 lines
329 B
PHP
19 lines
329 B
PHP
<?php namespace BookStack\Actions;
|
|
|
|
use BookStack\Model;
|
|
use Illuminate\Database\Eloquent\Relations\MorphTo;
|
|
|
|
class View extends Model
|
|
{
|
|
|
|
protected $fillable = ['user_id', 'views'];
|
|
|
|
/**
|
|
* Get all owning viewable models.
|
|
*/
|
|
public function viewable(): MorphTo
|
|
{
|
|
return $this->morphTo();
|
|
}
|
|
}
|