3 namespace BookStack\Auth\Permissions;
7 class EntityPermission extends Model
9 protected $fillable = ['role_id', 'action'];
10 public $timestamps = false;
13 * Get all this restriction's attached entity.
15 * @return \Illuminate\Database\Eloquent\Relations\MorphTo
17 public function restrictable()
19 return $this->morphTo('restrictable');