PDOException {#609
  #message: "SQLSTATE[08004] [1040] Too many connections"
  #code: 1040
  #file: "/var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php"
  #line: 68
  +errorInfo: null
  trace: {
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:68 {
      › 
      ›     return new PDO($dsn, $username, $password, $options);}
      arguments: {
        $dsn: "mysql:host=localhost;dbname=worldc_live"
        $username: "root"
        $passwd: "mar!a@w0rldcrunch@123"
        $options: array:5 [ …5]
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:44 {return $this->createPdoConnection(    $dsn, $username, $password, $options);
      arguments: {
        $dsn: "mysql:host=localhost;dbname=worldc_live"
        $username: "root"
        $password: "mar!a@w0rldcrunch@123"
        $options: array:5 [ …5]
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24 {// connection's behavior, and some might be specified by the developers.$connection = $this->createConnection($dsn, $config, $options);arguments: {
        $dsn: "mysql:host=localhost;dbname=worldc_live"
        $config: array:10 [ …10]
        $options: array:5 [ …5]
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:183 {try {    return $this->createConnector($config)->connect($config);} catch (PDOException $e) {
      arguments: {
        $config: array:10 [ …10]
      }
    }
    Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() {}
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Connection.php:883 {if ($this->pdo instanceof Closure) {    return $this->pdo = call_user_func($this->pdo);}
      arguments: {
        $function_name: Closure {#602 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Connection.php:904 {
      › 
      ›     return $this->readPdo ?: $this->getPdo();}
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Connection.php:392 {{    return $useReadPdo ? $this->getReadPdo() : $this->getPdo();}
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Connection.php:318 {// row from the database table, and will either be an array or objects.$statement = $this->prepared($this->getPdoForSelect($useReadPdo)                  ->prepare($query));
      arguments: {
        $useReadPdo: true
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Connection.php:640 {try {    $result = $callback($query, $bindings);}
      arguments: {
        "select * from `categories` where `mainmenu` = ?"
        array:1 [ …1]
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Connection.php:607 {try {    $result = $this->runQueryCallback($query, $bindings, $callback);} catch (QueryException $e) {
      arguments: {
        $query: "select * from `categories` where `mainmenu` = ?"
        $bindings: array:1 [ …1]
        $callback: Closure {#613 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Connection.php:326 {        return $statement->fetchAll();    });}
      arguments: {
        $query: "select * from `categories` where `mainmenu` = ?"
        $bindings: array:1 [ …1]
        $callback: Closure {#613 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1705 {return $this->connection->select(    $this->toSql(), $this->getBindings(), ! $this->useWritePdo);
      arguments: {
        $query: "select * from `categories` where `mainmenu` = ?"
        $bindings: array:1 [ …1]
        $useReadPdo: true
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1690 {
      › 
      › $results = $this->processor->processSelect($this, $this->runSelect());}
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:462 {return $this->model->hydrate(    $this->query->get($columns)->all())->all();
      arguments: {
        $columns: array:1 [ …1]
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:446 {// n+1 query issue for the developers to avoid running a lot of queries.if (count($models = $builder->getModels($columns)) > 0) {    $models = $builder->eagerLoadRelations($models);
      arguments: {
        $columns: array:1 [ …1]
      }
    }
    /var/www/worldcrunch/live/app/Http/Controllers/HomePageController.php:690 {\r$categories = Category::where('mainmenu', '=', '1')->get(); \r\r
    }
    App\Http\Controllers\HomePageController->singlestory() {}
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:55 {{    return call_user_func_array([$this, $method], $parameters);}
      arguments: {
        $function_name: array:2 [ …2]
        $parameters: array:4 [ …4]
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:44 {if (method_exists($controller, 'callAction')) {    return $controller->callAction($method, $parameters);}
      arguments: {
        $method: "singlestory"
        $parameters: array:4 [ …4]
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Route.php:203 {return (new ControllerDispatcher($this->container))->dispatch(    $this, $this->getController(), $this->getControllerMethod());
      arguments: {
        $route: Route {#349 …}
        $controller: HomePageController {#545 …}
        $method: "singlestory"
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Route.php:160 {if ($this->isControllerAction()) {    return $this->runController();}
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Router.php:572 {return $this->prepareResponse(    $request, $route->run());
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {try {    return $destination($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/app/Http/Middleware/IfLogingMiddleware.php:13 {      return $next($request);}
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#314 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/app/Http/Middleware/PopupMiddleware.php:12 {    \r    return $next($request);\r}\r
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#314 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:65 {) {    return $this->addCookieToResponse($request, $next($request));}
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#314 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#314 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64 {
      › 
      › $response = $next($request);arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#314 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {{    $response = $next($request);arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#314 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:59 {{    return $this->encrypt($next($this->decrypt($request)));}
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#314 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102 {
      › 
      ›     return $pipeline($this->passable);}
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Router.php:574 {                        );                    });}
      arguments: {
        $destination: Closure {#542 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Router.php:533 {
      › 
      › $response = $this->runRouteWithinStack($route, $request);arguments: {
        $route: Route {#349 …}
        $request: Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Router.php:511 {
      › 
      ›     return $this->dispatchToRoute($request);}
      arguments: {
        $request: Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 {
      › 
      ›     return $this->router->dispatch($request);};
      arguments: {
        $request: Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {try {    return $destination($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:46 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#314 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102 {
      › 
      ›     return $pipeline($this->passable);}
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 {                ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)                ->then($this->dispatchToRouter());}
      arguments: {
        $destination: Closure {#316 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
      › 
      ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
      arguments: {
        $request: Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/public/index.php:56 {$response = $kernel->handle(        $request = Illuminate\Http\Request::capture());
      arguments: {
        $request: Request {#39 …}
      }
    }
  }
}