src/CatLab/Gatekeeper/Laravel/Models/Gate.php
public function check($ability, $arguments = [])
    {
        if (!is_array($arguments)) {
            $arguments = [ $arguments ];
        }

        array_unshift($arguments, $ability);
        return call_user_func_array([ $this->gatekeeper, 'check'], $arguments);
    }
public function check($ability, $arguments = [])
    {
        if (!is_array($arguments)) {
            $arguments = [ $arguments ];
        }

        array_unshift($arguments, $ability);
        return call_user_func_array([ $this->gatekeeper, 'check'], $arguments);
    }
public function check ( $ ability , $ arguments = [ ] ) { if ( ! is_array ( $ arguments ) ) { $ arguments = [ $ arguments ] ; } array_unshift ( $ arguments , $ ability ) ; return call_user_func_array ( [ $ this -> gatekeeper , 'check' ] , $ arguments ) ; }
Determine if the given ability should be granted.

@param  string $ability
@param  array|mixed $arguments
@return bool
Determine if the given ability should be granted .