App\Http\Middleware\QuarxApi::handle PHP Метод

handle() публичный Метод

Handle an incoming request.
public handle ( Illuminate\Http\Request $request, Closure $next ) : mixed
$request Illuminate\Http\Request
$next Closure
Результат mixed
    public function handle($request, Closure $next)
    {
        if (Gate::allows('quarx-api')) {
            return $next($request);
        }
        return response('Unauthorized.', 401);
    }
QuarxApi