header('Authorization-token')) { return $next($request); } return response()->json(['unauthorized'], 401); } }