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