public function authorizeAtGate(GateInterface $gate, $ability, $arguments)
    {
        try {
            return $gate->authorize($ability, $arguments);
        }
        catch (UnauthorizedException $e) {
            $exception = $this->createGateUnauthorizedException($ability, $arguments, $e->getMessage(), $e);

            throw $exception;
        }
    }
public function authorizeAtGate(GateInterface $gate, $ability, $arguments)
    {
        try {
            return $gate->authorize($ability, $arguments);
        }
        catch (UnauthorizedException $e) {
            $exception = $this->createGateUnauthorizedException($ability, $arguments, $e->getMessage(), $e);

            throw $exception;
        }
    }
public function authorizeAtGate ( GateInterface $ gate , $ ability , $ arguments ) { try { return $ gate -> authorize ( $ ability , $ arguments ) ; } catch ( UnauthorizedException $ e ) { $ exception = $ this -> createGateUnauthorizedException ( $ ability , $ arguments , $ e -> getMessage ( ) , $ e ) ; throw $ exception ; } }
Authorize the request at the given gate.

@param  \Nova\Auth\Access\GateInterface  $gate
@param  mixed  $ability
@param  mixed|array  $arguments
@return \Nova\Auth\Access\Response

@throws \Symfony\Component\HttpKernel\Exception\HttpException
Authorize the request at the given gate .