src/Policies/AclPolicy.php
public function passesAuthorization()
    {
        if ( ! $this->hasToBeAuthorized() ) return true;

        return $this->gate->allows($this->route->getName());
    }
public function passesAuthorization()
    {
        if ( ! $this->hasToBeAuthorized() ) return true;

        return $this->gate->allows($this->route->getName());
    }
public function passesAuthorization ( ) { if ( ! $ this -> hasToBeAuthorized ( ) ) return true ; return $ this -> gate -> allows ( $ this -> route -> getName ( ) ) ; }
Authorizes a given route.

@param  Route  $route
@return bool
Authorizes a given route .