public function authorize($ability, $arguments = [])
    {
        [$ability, $arguments] = $this->parseAbilityAndArguments($ability, $arguments);

        return app(Gate::class)->authorize($ability, $arguments);
    }
public function authorize($ability, $arguments = [])
    {
        [$ability, $arguments] = $this->parseAbilityAndArguments($ability, $arguments);

        return app(Gate::class)->authorize($ability, $arguments);
    }
public function authorize ( $ ability , $ arguments = [ ] ) { [ $ ability , $ arguments ] = $ this -> parseAbilityAndArguments ( $ ability , $ arguments ) ; return app ( Gate :: class ) -> authorize ( $ ability , $ arguments ) ; }
Authorize a given action for the current user.

@param  mixed  $ability
@param  mixed|array  $arguments
@return \Illuminate\Auth\Access\Response

@throws \Illuminate\Auth\Access\AuthorizationException
Authorize a given action for the current user .