src/CachedClipboard.php
protected function compileAbilityIdentifiers($ability, $model)
    {
        $identifiers = new BaseCollection(
            is_null($model)
                ? [$ability, '*-*', '*']
                : $this->compileModelAbilityIdentifiers($ability, $model)
        );

        return $identifiers->map(function ($identifier) {
            return strtolower($identifier);
        });
    }
protected function compileAbilityIdentifiers($ability, $model)
    {
        $identifiers = new BaseCollection(
            is_null($model)
                ? [$ability, '*-*', '*']
                : $this->compileModelAbilityIdentifiers($ability, $model)
        );

        return $identifiers->map(function ($identifier) {
            return strtolower($identifier);
        });
    }
protected function compileAbilityIdentifiers ( $ ability , $ model ) { $ identifiers = new BaseCollection ( is_null ( $ model ) ? [ $ ability , '*-*' , '*' ] : $ this -> compileModelAbilityIdentifiers ( $ ability , $ model ) ) ; return $ identifiers -> map ( function ( $ identifier ) { return strtolower ( $ identifier ) ; } ) ; }
Compile a list of ability identifiers that match the provided parameters.

@param  string  $ability
@param  \Illuminate\Database\Eloquent\Model|string|null  $model
@return \Illuminate\Support\Collection
Compile a list of ability identifiers that match the provided parameters .