src/Conductors/Concerns/FindsAndCreatesAbilities.php
protected function getModelAbility($ability, $entity, array $attributes)
    {
        $entity = $this->getEntityInstance($entity);

        $existing = $this->findAbility($ability, $entity, $attributes);

        return $existing ?: $this->createAbility($ability, $entity, $attributes);
    }
protected function getModelAbility($ability, $entity, array $attributes)
    {
        $entity = $this->getEntityInstance($entity);

        $existing = $this->findAbility($ability, $entity, $attributes);

        return $existing ?: $this->createAbility($ability, $entity, $attributes);
    }
protected function getModelAbility ( $ ability , $ entity , array $ attributes ) { $ entity = $ this -> getEntityInstance ( $ entity ) ; $ existing = $ this -> findAbility ( $ ability , $ entity , $ attributes ) ; return $ existing ? : $ this -> createAbility ( $ ability , $ entity , $ attributes ) ; }
Get an ability for the given entity.

@param  string  $ability
@param  \Illuminate\Database\Eloquent\Model|string  $entity
@param  array  $attributes
@return \Silber\Bouncer\Database\Ability
Get an ability for the given entity .