public function handle($request, Closure $next) { if (Gate::allows('quarx-api')) { return $next($request); } return response('Unauthorized.', 401); }