src/Clipboard.php
protected function getAllowingAbility(Model $authority, $ability, $model = null)
    {
        return $this->getHasAbilityQuery(
            $authority, $ability, $model, $allowed = true
        )->first();
    }
protected function getAllowingAbility(Model $authority, $ability, $model = null)
    {
        return $this->getHasAbilityQuery(
            $authority, $ability, $model, $allowed = true
        )->first();
    }
protected function getAllowingAbility ( Model $ authority , $ ability , $ model = null ) { return $ this -> getHasAbilityQuery ( $ authority , $ ability , $ model , $ allowed = true ) -> first ( ) ; }
Get the ability model that allows the given ability request.

Returns null if the ability is not allowed.

@param  \Illuminate\Database\Eloquent\Model  $authority
@param  string  $ability
@param  \Illuminate\Database\Eloquent\Model|string|null  $model
@return \Illuminate\Database\Eloquent\Model|null
Get the ability model that allows the given ability request .