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