user()->id != 1) { return response()->json([ 'status' => 'failed', 'message' => 'This can only be accessed by the main admin' ]); } return $next($request); } }