'Database could not be set']; /* * Use the host name to set the active DB **/ if( $request->getHttpHost() && config('ninja.db.multi_db_enabled') && ! MultiDB::findAndSetDbByDomain($request->getHttpHost())) { return response()->json(json_encode($error, JSON_PRETTY_PRINT) ,403); } return $next($request); } }