mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 15:33:06 +08:00
22 lines
399 B
PHP
22 lines
399 B
PHP
<?php
|
|
|
|
namespace BookStack;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Restriction extends Model
|
|
{
|
|
|
|
protected $fillable = ['role_id', 'action'];
|
|
public $timestamps = false;
|
|
|
|
/**
|
|
* Get all this restriction's attached entity.
|
|
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
|
|
*/
|
|
public function restrictable()
|
|
{
|
|
return $this->morphTo();
|
|
}
|
|
}
|