PDOException: SQLSTATE[HY000] [1040] Too many connections in /home/bizmark/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47 Stack trace: #0 /home/bizmark/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(47): PDO->__construct('mysql:host=loca...', 'bizmark_communi...', 'b!zm@rk*123', Array) #1 /home/bizmark/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(20): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=loca...', Array, Array) #2 /home/bizmark/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(57): Illuminate\Database\Connectors\MySqlConnector->connect(Array) #3 /home/bizmark/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(46): Illuminate\Database\Connectors\ConnectionFactory->createSingleConnection(Array) #4 /home/bizmark/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(176): Illuminate\Database\Connectors\ConnectionFactory->make(Array, 'mysql') #5 /home/bizmark/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(64): Illuminate\Database\DatabaseManager->makeConnection('mysql') #6 /home/bizmark/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2920): Illuminate\Database\DatabaseManager->connection('mysql') #7 /home/bizmark/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2886): Illuminate\Database\Eloquent\Model::resolveConnection(NULL) #8 /home/bizmark/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1848): Illuminate\Database\Eloquent\Model->getConnection() #9 /home/bizmark/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1764): Illuminate\Database\Eloquent\Model->newBaseQueryBuilder() #10 /home/bizmark/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(3107): Illuminate\Database\Eloquent\Model->newQuery() #11 /home/bizmark/app/hackersnews/Repository/Eloquent/PostsRepository.php(53): Illuminate\Database\Eloquent\Model->__call('approved', Array) #12 /home/bizmark/app/hackersnews/Repository/Eloquent/PostsRepository.php(41): Hackersnews\Repository\Eloquent\PostsRepository->posts('question') #13 /home/bizmark/app/controllers/QuestionsController.php(54): Hackersnews\Repository\Eloquent\PostsRepository->getById('125316', 'question') #14 [internal function]: QuestionsController->get('125316', 'what-are-the-us...') #15 /home/bizmark/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(231): call_user_func_array(Array, Array) #16 /home/bizmark/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(93): Illuminate\Routing\Controller->callAction('get', Array) #17 /home/bizmark/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(62): Illuminate\Routing\ControllerDispatcher->call(Object(QuestionsController), Object(Illuminate\Routing\Route), 'get') #18 /home/bizmark/vendor/laravel/framework/src/Illuminate/Routing/Router.php(962): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'QuestionsContro...', 'get') #19 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}('125316', 'what-are-the-us...') #20 /home/bizmark/vendor/laravel/framework/src/Illuminate/Routing/Route.php(109): call_user_func_array(Object(Closure), Array) #21 /home/bizmark/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1028): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request)) #22 /home/bizmark/vendor/laravel/framework/src/Illuminate/Routing/Router.php(996): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) #23 /home/bizmark/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(775): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) #24 /home/bizmark/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(745): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request)) #25 /home/bizmark/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true) #26 /home/bizmark/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true) #27 /home/bizmark/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true) #28 /home/bizmark/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true) #29 /home/bizmark/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(641): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request)) #30 /home/bizmark/public_html/index.php(51): Illuminate\Foundation\Application->run() #31 {main}