mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 20:02:35 +01:00
59367b3417
Worked around slower eloquent access to speed up permission generation.
17 lines
301 B
PHP
17 lines
301 B
PHP
<?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();
|
|
}
|
|
}
|