'Email not set or not found', 'errors' => new stdClass, ]; if ($request->input('email') && config('ninja.db.multi_db_enabled')) { nlog("finding email = ". $request->input('email')); if (! MultiDB::userFindAndSetDb($request->input('email'))) return response()->json($error, 400); } return $next($request); } }