PDOException: SQLSTATE[HY000] [1040] Too many connections in /home/hipnsocial/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47 Stack trace: #0 /home/hipnsocial/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(47): PDO->__construct('mysql:host=loca...', 'hipnsoci_media', ')h!pnsoc!l1@2', Array) #1 /home/hipnsocial/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(20): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=loca...', Array, Array) #2 /home/hipnsocial/bootstrap/compiled.php(7632): Illuminate\Database\Connectors\MySqlConnector->connect(Array) #3 /home/hipnsocial/bootstrap/compiled.php(7628): Illuminate\Database\Connectors\ConnectionFactory->createSingleConnection(Array) #4 /home/hipnsocial/bootstrap/compiled.php(7540): Illuminate\Database\Connectors\ConnectionFactory->make(Array, 'mysql') #5 /home/hipnsocial/bootstrap/compiled.php(7495): Illuminate\Database\DatabaseManager->makeConnection('mysql') #6 /home/hipnsocial/bootstrap/compiled.php(7376): Illuminate\Database\DatabaseManager->connection('mysql') #7 /home/hipnsocial/bootstrap/compiled.php(7363): Illuminate\Database\Eloquent\Model::resolveConnection(NULL) #8 /home/hipnsocial/bootstrap/compiled.php(6948): Illuminate\Database\Eloquent\Model->getConnection() #9 /home/hipnsocial/bootstrap/compiled.php(6915): Illuminate\Database\Eloquent\Model->newBaseQueryBuilder() #10 /home/hipnsocial/bootstrap/compiled.php(7447): Illuminate\Database\Eloquent\Model->newQuery() #11 /home/hipnsocial/app/mediavenue/Repository/Eloquent/PostsRepository.php(65): Illuminate\Database\Eloquent\Model->__call('whereSlug', Array) #12 /home/hipnsocial/app/mediavenue/Repository/Eloquent/PostsRepository.php(97): Mediavenue\Repository\Eloquent\PostsRepository->posts(NULL, 'insurance-servi...') #13 /home/hipnsocial/app/controllers/PostsController.php(111): Mediavenue\Repository\Eloquent\PostsRepository->getTrending(NULL, 'insurance-servi...') #14 [internal function]: PostsController->getTrending() #15 /home/hipnsocial/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(231): call_user_func_array(Array, Array) #16 /home/hipnsocial/bootstrap/compiled.php(5776): Illuminate\Routing\Controller->callAction('getTrending', Array) #17 /home/hipnsocial/bootstrap/compiled.php(5764): Illuminate\Routing\ControllerDispatcher->call(Object(PostsController), Object(Illuminate\Routing\Route), 'getTrending') #18 /home/hipnsocial/bootstrap/compiled.php(4971): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'PostsController', 'getTrending') #19 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}() #20 /home/hipnsocial/bootstrap/compiled.php(5329): call_user_func_array(Object(Closure), Array) #21 /home/hipnsocial/bootstrap/compiled.php(4996): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request)) #22 /home/hipnsocial/bootstrap/compiled.php(4984): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) #23 /home/hipnsocial/bootstrap/compiled.php(715): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) #24 /home/hipnsocial/bootstrap/compiled.php(696): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request)) #25 /home/hipnsocial/bootstrap/compiled.php(7744): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true) #26 /home/hipnsocial/bootstrap/compiled.php(8351): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true) #27 /home/hipnsocial/bootstrap/compiled.php(8298): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true) #28 /home/hipnsocial/bootstrap/compiled.php(10958): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true) #29 /home/hipnsocial/bootstrap/compiled.php(657): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request)) #30 /home/hipnsocial/public_html/index.php(49): Illuminate\Foundation\Application->run() #31 {main}