5 use Illuminate\Database\Eloquent\Model;
7 class Restriction extends Model
10 protected $fillable = ['role_id', 'action'];
11 public $timestamps = false;
14 * Get all this restriction's attached entity.
15 * @return \Illuminate\Database\Eloquent\Relations\MorphTo
17 public function restrictable()
19 return $this->morphTo();