Illuminate\Database\QueryException {#2910 +errorInfo: array:3 [ 0 => "HY000" 1 => 2002 2 => "Connection refused" ] +connectionName: "mysql" #sql: "select * from `configs` limit 1" #bindings: [] }
throw new UniqueConstraintViolationException( $this->getName(), $query, $this->prepareBindings($bindings), $e ); } throw new QueryException( $this->getName(), $query, $this->prepareBindings($bindings), $e ); } } protected function tryAgainIfCausedByLostConnection(QueryException $e, $query, $bindings, Closure $callback) { if ($this->causedByLostConnection($e->getPrevious())) { $this->reconnect(); return $this->runQueryCallback($query, $bindings, $callback); } throw $e; } if ($this->transactions >= 1) { throw $e; } return $this->tryAgainIfCausedByLostConnection( $e, $query, $bindings, $callback ); } /** * Handle a query exception that occurred during query execution. // to re-establish connection and re-run the query with a fresh connection. try { $result = $this->runQueryCallback($query, $bindings, $callback); } catch (QueryException $e) { $result = $this->handleQueryException( $e, $query, $bindings, $callback ); } // Once we have run the query we will calculate the time that it took to run and // then log the query, bindings, and execution time so we will report them on $this->bindValues($statement, $this->prepareBindings($bindings)); $statement->execute(); return $statement->fetchAll(); }); } /** * Run a select statement against the database and returns all of the result sets. * * @return array */ protected function runSelect() { return $this->connection->select( $this->toSql(), $this->getBindings(), ! $this->useWritePdo ); } /** * Paginate the given query into a simple paginator. * @return \Illuminate\Support\Collection */ public function get($columns = ['*']) { return collect($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); } /** * Run the query as a "select" statement against the connection. if (is_null($original)) { $this->columns = $columns; } $result = $callback(); $this->columns = $original; return $result; } */ public function get($columns = ['*']) { return collect($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); } /** * Run the query as a "select" statement against the connection. * * @return \Illuminate\Database\Eloquent\Model[]|static[] */ public function getModels($columns = ['*']) { return $this->model->hydrate( $this->query->get($columns)->all() )->all(); } /** * Eager load the relationships for the models. $builder = $this->applyScopes(); // If we actually found models we will also eager load any relationships that // have been specified as needing to be eager loaded, which will solve the // 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); } return $builder->getModel()->newCollection($models); } * @param array|string $columns * @return \Illuminate\Database\Eloquent\Model|object|static|null */ public function first($columns = ['*']) { return $this->take(1)->get($columns)->first(); } /** * Execute the query and get the first result if it's the sole matching record. * * @throws \BadMethodCallException */ protected function forwardCallTo($object, $method, $parameters) { try { return $object->{$method}(...$parameters); } catch (Error|BadMethodCallException $e) { $pattern = '~^Call to undefined method (?P<class>[^:]+)::(?P<method>[^\(]+)\(\)$~'; if (! preg_match($pattern, $e->getMessage(), $matches)) { throw $e; if (Str::startsWith($method, 'through') && method_exists($this, $relationMethod = Str::of($method)->after('through')->lcfirst()->toString())) { return $this->through($relationMethod); } return $this->forwardCallTo($this->newQuery(), $method, $parameters); } /** * Handle dynamic static method calls into the model. * * @param array $parameters * @return mixed */ public static function __callStatic($method, $parameters) { return (new static)->$method(...$parameters); } /** * Convert the model to its string representation. * */
public function __construct()
{
if (env('IS_INSTALLED') == 1) {
$this->configs = Config::first();
$this->menu_all = Menu::query();
$this->g = Genre::query();
$this->lang = AudioLanguage::query();
$this->ad = Adsense::first();
$this->homeslider = HomeSlider::query();
throw $e; } array_pop($this->buildStack); return $reflector->newInstanceArgs($instances); } /** * Resolve all of the dependencies from the ReflectionParameters. * // We're ready to instantiate an instance of the concrete type registered for // the binding. This will instantiate the types, as well as resolve any of // its "nested" dependencies recursively until all have gotten resolved. $object = $this->isBuildable($concrete, $abstract) ? $this->build($concrete) : $this->make($concrete); // If we defined any extenders for this type, we'll need to spin through them // and apply them to the object being built. This allows for the extension // of services, such as changing configuration or decorating the object. */ protected function resolve($abstract, $parameters = [], $raiseEvents = true) { $this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract)); return parent::resolve($abstract, $parameters, $raiseEvents); } /** * Load the deferred provider if the given type is a deferred service and the instance has not been loaded. * * * @throws \Illuminate\Contracts\Container\BindingResolutionException */ public function make($abstract, array $parameters = []) { return $this->resolve($abstract, $parameters); } /** * {@inheritdoc} * */ public function make($abstract, array $parameters = []) { $this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract)); return parent::make($abstract, $parameters); } /** * Resolve the given type from the container. * } if (! $this->controller) { $class = $this->getControllerClass(); $this->controller = $this->container->make(ltrim($class, '\\')); } return $this->controller; } ); } if (method_exists($controllerClass, 'getMiddleware')) { return $this->controllerDispatcher()->getMiddleware( $this->getController(), $controllerMethod ); } return []; } } $this->computedMiddleware = []; return $this->computedMiddleware = Router::uniqueMiddleware(array_merge( $this->middleware(), $this->controllerMiddleware() )); } /** * Get or set the middlewares attached to the route. * @param \Illuminate\Routing\Route $route * @return array */ public function gatherRouteMiddleware(Route $route) { return $this->resolveMiddleware($route->gatherMiddleware(), $route->excludedMiddleware()); } /** * Resolve a flat array of middleware classes from the provided array. * protected function runRouteWithinStack(Route $route, Request $request) { $shouldSkipMiddleware = $this->container->bound('middleware.disable') && $this->container->make('middleware.disable') === true; $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route); return (new Pipeline($this->container)) ->send($request) ->through($middleware) ->then(fn ($request) => $this->prepareResponse( $request->setRouteResolver(fn () => $route); $this->events->dispatch(new RouteMatched($route, $request)); return $this->prepareResponse($request, $this->runRouteWithinStack($route, $request) ); } /** * Run the given route within a Stack "onion" instance. * @param \Illuminate\Http\Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function dispatchToRoute(Request $request) { return $this->runRoute($request, $this->findRoute($request)); } /** * Find the route matching a given request. * */ public function dispatch(Request $request) { $this->currentRequest = $request; return $this->dispatchToRoute($request); } /** * Dispatch the request to a route and return the response. * protected function dispatchToRouter() { return function ($request) { $this->app->instance('request', $request); return $this->router->dispatch($request); }; } /** * Call the terminate method on any terminable middleware. */ protected function prepareDestination(Closure $destination) { return function ($passable) use ($destination) { try { return $destination($passable); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; } * @return mixed */ public function handle($request, Closure $next) { if (!$this->debugbar->isEnabled() || $this->inExceptArray($request)) { return $next($request); } $this->debugbar->boot(); try { // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); { $request::setTrustedProxies([], $this->getTrustedHeaderNames()); $this->setTrustedProxyIpAddresses($request); return $next($request); } /** * Sets the trusted proxies on the request. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { $this->clean($request); return $next($request); } /** * Clean the request's data. * if ($callback($request)) { return $next($request); } } return parent::handle($request, $next); } /** * Transform the given value. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { $this->clean($request); return $next($request); } /** * Clean the request's data. * if ($callback($request)) { return $next($request); } } return parent::handle($request, $next); } /** * Transform the given value. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) { throw new PostTooLargeException; } return $next($request); } /** * Determine the server 'post_max_size' as bytes. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); null, $this->getHeaders($data) ); } return $next($request); } /** * Determine if the incoming request has a maintenance mode bypass cookie. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); { $pipeline = array_reduce( array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination) ); return $pipeline($this->passable); } /** * Run the pipeline and return the result. * $this->bootstrap(); return (new Pipeline($this->app)) ->send($request) ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware) ->then($this->dispatchToRouter()); } /** * Bootstrap the application for HTTP requests. * $this->requestStartedAt = Carbon::now(); try { $request->enableHttpMethodParameterOverride(); $response = $this->sendRequestThroughRouter($request); } catch (Throwable $e) { $this->reportException($e); $response = $this->renderException($request, $e); }$app = require_once __DIR__.'/../bootstrap/app.php';$kernel = $app->make(Kernel::class);$response = $kernel->handle( $request = Request::capture())->send();$kernel->terminate($request, $response); * @param array $options * @return \PDO */ protected function createPdoConnection($dsn, $username, $password, $options) { return new PDO($dsn, $username, $password, $options); } /** * Handle an exception that occurred during connect execution. * * @param array $options * @return \PDO */ protected function createPdoConnection($dsn, $username, $password, $options) { return new PDO($dsn, $username, $password, $options); } /** * Handle an exception that occurred during connect execution. * * @throws \Exception */ protected function tryAgainIfCausedByLostConnection(Throwable $e, $dsn, $username, $password, $options) { if ($this->causedByLostConnection($e)) { return $this->createPdoConnection($dsn, $username, $password, $options); } throw $e; } return $this->createPdoConnection( $dsn, $username, $password, $options ); } catch (Exception $e) { return $this->tryAgainIfCausedByLostConnection( $e, $dsn, $username, $password, $options ); } } /** $options = $this->getOptions($config); // We need to grab the PDO options that should be used while making the brand // new connection instance. The PDO options control various aspects of the // connection's behavior, and some might be specified by the developers. $connection = $this->createConnection($dsn, $config, $options); if (! empty($config['database'])) { $connection->exec("use `{$config['database']}`;"); } return function () use ($config) { foreach (Arr::shuffle($this->parseHosts($config)) as $host) { $config['host'] = $host; try { return $this->createConnector($config)->connect($config); } catch (PDOException $e) { continue; } } * @return \PDO */ public function getPdo() { if ($this->pdo instanceof Closure) { return $this->pdo = call_user_func($this->pdo); } return $this->pdo; } if ($this->readPdo instanceof Closure) { return $this->readPdo = call_user_func($this->readPdo); } return $this->readPdo ?: $this->getPdo(); } /** * Get the current read PDO connection parameter without executing any reconnect logic. * * @param bool $useReadPdo * @return \PDO */ protected function getPdoForSelect($useReadPdo = true) { return $useReadPdo ? $this->getReadPdo() : $this->getPdo(); } /** * Run an insert statement against the database. * // For select statements, we'll simply execute the query and return an array // of the database result set. Each element in the array will be a single // row from the database table, and will either be an array or objects. $statement = $this->prepared( $this->getPdoForSelect($useReadPdo)->prepare($query) ); $this->bindValues($statement, $this->prepareBindings($bindings)); $statement->execute(); { // To execute the statement, we'll simply call the callback, which will actually // run the SQL against the PDO connection. Then we can calculate the time it // took to execute and log the query SQL, bindings and time in our memory. try { return $callback($query, $bindings); } // If an exception occurs when attempting to run a query, we'll format the error // message to include the bindings with SQL, which will make this exception a // lot more helpful to the developer instead of just the database's errors. protected function tryAgainIfCausedByLostConnection(QueryException $e, $query, $bindings, Closure $callback) { if ($this->causedByLostConnection($e->getPrevious())) { $this->reconnect(); return $this->runQueryCallback($query, $bindings, $callback); } throw $e; } if ($this->transactions >= 1) { throw $e; } return $this->tryAgainIfCausedByLostConnection( $e, $query, $bindings, $callback ); } /** * Handle a query exception that occurred during query execution. // to re-establish connection and re-run the query with a fresh connection. try { $result = $this->runQueryCallback($query, $bindings, $callback); } catch (QueryException $e) { $result = $this->handleQueryException( $e, $query, $bindings, $callback ); } // Once we have run the query we will calculate the time that it took to run and // then log the query, bindings, and execution time so we will report them on $this->bindValues($statement, $this->prepareBindings($bindings)); $statement->execute(); return $statement->fetchAll(); }); } /** * Run a select statement against the database and returns all of the result sets. * * @return array */ protected function runSelect() { return $this->connection->select( $this->toSql(), $this->getBindings(), ! $this->useWritePdo ); } /** * Paginate the given query into a simple paginator. * @return \Illuminate\Support\Collection */ public function get($columns = ['*']) { return collect($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); } /** * Run the query as a "select" statement against the connection. if (is_null($original)) { $this->columns = $columns; } $result = $callback(); $this->columns = $original; return $result; } */ public function get($columns = ['*']) { return collect($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); } /** * Run the query as a "select" statement against the connection. * * @return \Illuminate\Database\Eloquent\Model[]|static[] */ public function getModels($columns = ['*']) { return $this->model->hydrate( $this->query->get($columns)->all() )->all(); } /** * Eager load the relationships for the models. $builder = $this->applyScopes(); // If we actually found models we will also eager load any relationships that // have been specified as needing to be eager loaded, which will solve the // 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); } return $builder->getModel()->newCollection($models); } * @param array|string $columns * @return \Illuminate\Database\Eloquent\Model|object|static|null */ public function first($columns = ['*']) { return $this->take(1)->get($columns)->first(); } /** * Execute the query and get the first result if it's the sole matching record. * * @throws \BadMethodCallException */ protected function forwardCallTo($object, $method, $parameters) { try { return $object->{$method}(...$parameters); } catch (Error|BadMethodCallException $e) { $pattern = '~^Call to undefined method (?P<class>[^:]+)::(?P<method>[^\(]+)\(\)$~'; if (! preg_match($pattern, $e->getMessage(), $matches)) { throw $e; if (Str::startsWith($method, 'through') && method_exists($this, $relationMethod = Str::of($method)->after('through')->lcfirst()->toString())) { return $this->through($relationMethod); } return $this->forwardCallTo($this->newQuery(), $method, $parameters); } /** * Handle dynamic static method calls into the model. * * @param array $parameters * @return mixed */ public static function __callStatic($method, $parameters) { return (new static)->$method(...$parameters); } /** * Convert the model to its string representation. * */
public function __construct()
{
if (env('IS_INSTALLED') == 1) {
$this->configs = Config::first();
$this->menu_all = Menu::query();
$this->g = Genre::query();
$this->lang = AudioLanguage::query();
$this->ad = Adsense::first();
$this->homeslider = HomeSlider::query();
throw $e; } array_pop($this->buildStack); return $reflector->newInstanceArgs($instances); } /** * Resolve all of the dependencies from the ReflectionParameters. * // We're ready to instantiate an instance of the concrete type registered for // the binding. This will instantiate the types, as well as resolve any of // its "nested" dependencies recursively until all have gotten resolved. $object = $this->isBuildable($concrete, $abstract) ? $this->build($concrete) : $this->make($concrete); // If we defined any extenders for this type, we'll need to spin through them // and apply them to the object being built. This allows for the extension // of services, such as changing configuration or decorating the object. */ protected function resolve($abstract, $parameters = [], $raiseEvents = true) { $this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract)); return parent::resolve($abstract, $parameters, $raiseEvents); } /** * Load the deferred provider if the given type is a deferred service and the instance has not been loaded. * * * @throws \Illuminate\Contracts\Container\BindingResolutionException */ public function make($abstract, array $parameters = []) { return $this->resolve($abstract, $parameters); } /** * {@inheritdoc} * */ public function make($abstract, array $parameters = []) { $this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract)); return parent::make($abstract, $parameters); } /** * Resolve the given type from the container. * } if (! $this->controller) { $class = $this->getControllerClass(); $this->controller = $this->container->make(ltrim($class, '\\')); } return $this->controller; } ); } if (method_exists($controllerClass, 'getMiddleware')) { return $this->controllerDispatcher()->getMiddleware( $this->getController(), $controllerMethod ); } return []; } } $this->computedMiddleware = []; return $this->computedMiddleware = Router::uniqueMiddleware(array_merge( $this->middleware(), $this->controllerMiddleware() )); } /** * Get or set the middlewares attached to the route. * @param \Illuminate\Routing\Route $route * @return array */ public function gatherRouteMiddleware(Route $route) { return $this->resolveMiddleware($route->gatherMiddleware(), $route->excludedMiddleware()); } /** * Resolve a flat array of middleware classes from the provided array. * protected function runRouteWithinStack(Route $route, Request $request) { $shouldSkipMiddleware = $this->container->bound('middleware.disable') && $this->container->make('middleware.disable') === true; $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route); return (new Pipeline($this->container)) ->send($request) ->through($middleware) ->then(fn ($request) => $this->prepareResponse( $request->setRouteResolver(fn () => $route); $this->events->dispatch(new RouteMatched($route, $request)); return $this->prepareResponse($request, $this->runRouteWithinStack($route, $request) ); } /** * Run the given route within a Stack "onion" instance. * @param \Illuminate\Http\Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function dispatchToRoute(Request $request) { return $this->runRoute($request, $this->findRoute($request)); } /** * Find the route matching a given request. * */ public function dispatch(Request $request) { $this->currentRequest = $request; return $this->dispatchToRoute($request); } /** * Dispatch the request to a route and return the response. * protected function dispatchToRouter() { return function ($request) { $this->app->instance('request', $request); return $this->router->dispatch($request); }; } /** * Call the terminate method on any terminable middleware. */ protected function prepareDestination(Closure $destination) { return function ($passable) use ($destination) { try { return $destination($passable); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; } * @return mixed */ public function handle($request, Closure $next) { if (!$this->debugbar->isEnabled() || $this->inExceptArray($request)) { return $next($request); } $this->debugbar->boot(); try { // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); { $request::setTrustedProxies([], $this->getTrustedHeaderNames()); $this->setTrustedProxyIpAddresses($request); return $next($request); } /** * Sets the trusted proxies on the request. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { $this->clean($request); return $next($request); } /** * Clean the request's data. * if ($callback($request)) { return $next($request); } } return parent::handle($request, $next); } /** * Transform the given value. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { $this->clean($request); return $next($request); } /** * Clean the request's data. * if ($callback($request)) { return $next($request); } } return parent::handle($request, $next); } /** * Transform the given value. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) { throw new PostTooLargeException; } return $next($request); } /** * Determine the server 'post_max_size' as bytes. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); null, $this->getHeaders($data) ); } return $next($request); } /** * Determine if the incoming request has a maintenance mode bypass cookie. * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); { $pipeline = array_reduce( array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination) ); return $pipeline($this->passable); } /** * Run the pipeline and return the result. * $this->bootstrap(); return (new Pipeline($this->app)) ->send($request) ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware) ->then($this->dispatchToRouter()); } /** * Bootstrap the application for HTTP requests. * $this->requestStartedAt = Carbon::now(); try { $request->enableHttpMethodParameterOverride(); $response = $this->sendRequestThroughRouter($request); } catch (Throwable $e) { $this->reportException($e); $response = $this->renderException($request, $e); }$app = require_once __DIR__.'/../bootstrap/app.php';$kernel = $app->make(Kernel::class);$response = $kernel->handle( $request = Request::capture())->send();$kernel->terminate($request, $response);|
[2/2]
QueryException
|
|---|
Illuminate\Database\QueryException:
SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `configs` limit 1)
at /home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:830
at Illuminate\Database\Connection->runQueryCallback('select * from `configs` limit 1', array(), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:984)
at Illuminate\Database\Connection->tryAgainIfCausedByLostConnection(object(QueryException), 'select * from `configs` limit 1', array(), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:964)
at Illuminate\Database\Connection->handleQueryException(object(QueryException), 'select * from `configs` limit 1', array(), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:787)
at Illuminate\Database\Connection->run('select * from `configs` limit 1', array(), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:432)
at Illuminate\Database\Connection->select('select * from `configs` limit 1', array(), true)
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2872)
at Illuminate\Database\Query\Builder->runSelect()
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2860)
at Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3414)
at Illuminate\Database\Query\Builder->onceWithColumns(array('*'), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2861)
at Illuminate\Database\Query\Builder->get(array('*'))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:738)
at Illuminate\Database\Eloquent\Builder->getModels(array('*'))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:722)
at Illuminate\Database\Eloquent\Builder->get(array('*'))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:333)
at Illuminate\Database\Eloquent\Builder->first()
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php:23)
at Illuminate\Database\Eloquent\Model->forwardCallTo(object(Builder), 'first', array())
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:2334)
at Illuminate\Database\Eloquent\Model->__call('first', array())
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:2346)
at Illuminate\Database\Eloquent\Model::__callStatic('first', array())
(/home/livebolaterkini/public_html/app/Http/Controllers/HomeController.php:50)
at App\Http\Controllers\HomeController->__construct()
at ReflectionClass->newInstanceArgs(array())
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:952)
at Illuminate\Container\Container->build('App\\Http\\Controllers\\HomeController')
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:795)
at Illuminate\Container\Container->resolve('App\\Http\\Controllers\\HomeController', array(), true)
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:957)
at Illuminate\Foundation\Application->resolve('App\\Http\\Controllers\\HomeController', array())
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:731)
at Illuminate\Container\Container->make('App\\Http\\Controllers\\HomeController', array())
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:942)
at Illuminate\Foundation\Application->make('App\\Http\\Controllers\\HomeController')
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:278)
at Illuminate\Routing\Route->getController()
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:1104)
at Illuminate\Routing\Route->controllerMiddleware()
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:1035)
at Illuminate\Routing\Route->gatherMiddleware()
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:818)
at Illuminate\Routing\Router->gatherRouteMiddleware(object(Route))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:800)
at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:784)
at Illuminate\Routing\Router->runRoute(object(Request), object(Route))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:748)
at Illuminate\Routing\Router->dispatchToRoute(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:737)
at Illuminate\Routing\Router->dispatch(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:200)
at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:144)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:59)
at Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php:39)
at Illuminate\Http\Middleware\TrustProxies->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:99)
at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:119)
at Illuminate\Pipeline\Pipeline->then(object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
at Illuminate\Foundation\Http\Kernel->handle(object(Request))
(/home/livebolaterkini/public_html/public/index.php:52)
|
|
[1/2]
PDOException
|
|---|
PDOException:
SQLSTATE[HY000] [2002] Connection refused
at /home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65
at PDO->__construct('mysql:host=127.0.0.1;port=3306;dbname=livebolaterkini_db', 'livebolaterkini_root', '1qaZXsw2!!root', array(0, 2, 0, false, false))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
at Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=127.0.0.1;port=3306;dbname=livebolaterkini_db', 'livebolaterkini_root', '1qaZXsw2!!root', array(0, 2, 0, false, false))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:83)
at Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection(object(PDOException), 'mysql:host=127.0.0.1;port=3306;dbname=livebolaterkini_db', 'livebolaterkini_root', '1qaZXsw2!!root', array(0, 2, 0, false, false))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:49)
at Illuminate\Database\Connectors\Connector->createConnection('mysql:host=127.0.0.1;port=3306;dbname=livebolaterkini_db', array('driver' => 'mysql', 'host' => '127.0.0.1', 'port' => '3306', 'database' => 'livebolaterkini_db', 'username' => 'livebolaterkini_root', 'password' => '1qaZXsw2!!root', 'unix_socket' => '', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'strict' => false, 'engine' => null, 'dump' => array('dump_binary_path' => '', 'use_single_transaction', 'timeout' => 300), 'name' => 'mysql'), array(0, 2, 0, false, false))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24)
at Illuminate\Database\Connectors\MySqlConnector->connect(array('driver' => 'mysql', 'host' => '127.0.0.1', 'port' => '3306', 'database' => 'livebolaterkini_db', 'username' => 'livebolaterkini_root', 'password' => '1qaZXsw2!!root', 'unix_socket' => '', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'strict' => false, 'engine' => null, 'dump' => array('dump_binary_path' => '', 'use_single_transaction', 'timeout' => 300), 'name' => 'mysql'))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:184)
at Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
at call_user_func(object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1340)
at Illuminate\Database\Connection->getPdo()
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1376)
at Illuminate\Database\Connection->getReadPdo()
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:529)
at Illuminate\Database\Connection->getPdoForSelect(true)
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:424)
at Illuminate\Database\Connection->Illuminate\Database\{closure}('select * from `configs` limit 1', array())
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:817)
at Illuminate\Database\Connection->runQueryCallback('select * from `configs` limit 1', array(), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:984)
at Illuminate\Database\Connection->tryAgainIfCausedByLostConnection(object(QueryException), 'select * from `configs` limit 1', array(), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:964)
at Illuminate\Database\Connection->handleQueryException(object(QueryException), 'select * from `configs` limit 1', array(), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:787)
at Illuminate\Database\Connection->run('select * from `configs` limit 1', array(), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:432)
at Illuminate\Database\Connection->select('select * from `configs` limit 1', array(), true)
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2872)
at Illuminate\Database\Query\Builder->runSelect()
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2860)
at Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3414)
at Illuminate\Database\Query\Builder->onceWithColumns(array('*'), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2861)
at Illuminate\Database\Query\Builder->get(array('*'))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:738)
at Illuminate\Database\Eloquent\Builder->getModels(array('*'))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:722)
at Illuminate\Database\Eloquent\Builder->get(array('*'))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:333)
at Illuminate\Database\Eloquent\Builder->first()
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php:23)
at Illuminate\Database\Eloquent\Model->forwardCallTo(object(Builder), 'first', array())
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:2334)
at Illuminate\Database\Eloquent\Model->__call('first', array())
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:2346)
at Illuminate\Database\Eloquent\Model::__callStatic('first', array())
(/home/livebolaterkini/public_html/app/Http/Controllers/HomeController.php:50)
at App\Http\Controllers\HomeController->__construct()
at ReflectionClass->newInstanceArgs(array())
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:952)
at Illuminate\Container\Container->build('App\\Http\\Controllers\\HomeController')
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:795)
at Illuminate\Container\Container->resolve('App\\Http\\Controllers\\HomeController', array(), true)
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:957)
at Illuminate\Foundation\Application->resolve('App\\Http\\Controllers\\HomeController', array())
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:731)
at Illuminate\Container\Container->make('App\\Http\\Controllers\\HomeController', array())
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:942)
at Illuminate\Foundation\Application->make('App\\Http\\Controllers\\HomeController')
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:278)
at Illuminate\Routing\Route->getController()
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:1104)
at Illuminate\Routing\Route->controllerMiddleware()
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:1035)
at Illuminate\Routing\Route->gatherMiddleware()
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:818)
at Illuminate\Routing\Router->gatherRouteMiddleware(object(Route))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:800)
at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:784)
at Illuminate\Routing\Router->runRoute(object(Request), object(Route))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:748)
at Illuminate\Routing\Router->dispatchToRoute(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:737)
at Illuminate\Routing\Router->dispatch(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:200)
at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:144)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:59)
at Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php:39)
at Illuminate\Http\Middleware\TrustProxies->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:99)
at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:119)
at Illuminate\Pipeline\Pipeline->then(object(Closure))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
(/home/livebolaterkini/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
at Illuminate\Foundation\Http\Kernel->handle(object(Request))
(/home/livebolaterkini/public_html/public/index.php:52)
|