Illuminate\Database\QueryException {#1077 +errorInfo: array:3 [ 0 => "HY000" 1 => 1203 2 => "User srv83227_asted already has more than 'max_user_connections' active connections" ] +connectionName: "mariadb" #sql: "select * from `sessions` where `id` = ? limit 1" #bindings: array:1 [ 0 => "GKUgU9PyoVRq0fIBDpsDrtV29IBiZKQ1mdvnA1lL" ] }
throw new UniqueConstraintViolationException( $this->getName(), $query, $this->prepareBindings($bindings), $e ); } throw new QueryException( $this->getName(), $query, $this->prepareBindings($bindings), $e ); } } // Here we will run this query. If an exception occurs we'll determine if it was // caused by a connection that has been lost. If that is the cause, we'll try // 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 ); } * @param bool $useReadPdo * @return array */ public function select($query, $bindings = [], $useReadPdo = true) { return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) { if ($this->pretending()) { return []; } // For select statements, we'll simply execute the query and return an array * * @return array */ protected function runSelect() { return $this->connection->select( $this->toSql(), $this->getBindings(), ! $this->useWritePdo ); } /** * @return \Illuminate\Support\Collection<int, \stdClass> */ public function get($columns = ['*']) { $items = new Collection($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); return $this->applyAfterQueryCallbacks( isset($this->groupLimit) ? $this->withoutGroupLimitKeys($items) : $items ); if (is_null($original)) { $this->columns = $columns; } $result = $callback(); $this->columns = $original; return $result; } * @param string|\Illuminate\Contracts\Database\Query\Expression|array<string|\Illuminate\Contracts\Database\Query\Expression> $columns * @return \Illuminate\Support\Collection<int, \stdClass> */ public function get($columns = ['*']) { $items = new Collection($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); return $this->applyAfterQueryCallbacks( isset($this->groupLimit) ? $this->withoutGroupLimitKeys($items) : $items * @param array|string $columns * @return TValue|null */ public function first($columns = ['*']) { return $this->limit(1)->get($columns)->first(); } /** * Execute the query and get the first result or throw an exception. * * @param string|\Illuminate\Contracts\Database\Query\Expression|array<string|\Illuminate\Contracts\Database\Query\Expression> $columns * @return object|null */ public function find($id, $columns = ['*']) { return $this->where('id', '=', $id)->first($columns); } /** * Execute a query for a single record by ID or call a callback. * * * @return string|false */ public function read($sessionId): string|false { $session = (object) $this->getQuery()->find($sessionId); if ($this->expired($session)) { $this->exists = true; return ''; * * @return array */ protected function readFromHandler() { if ($data = $this->handler->read($this->getId())) { if ($this->serialization === 'json') { $data = json_decode($this->prepareForUnserialize($data), true); } else { $data = @unserialize($this->prepareForUnserialize($data)); } * * @return void */ protected function loadSession() { $this->attributes = array_replace($this->attributes, $this->readFromHandler()); $this->marshalErrorBag(); } /** * * @return bool */ public function start() { $this->loadSession(); if (! $this->has('_token')) { $this->regenerateToken(); } protected function startSession(Request $request, $session) { return tap($session, function ($session) use ($request) { $session->setRequestOnHandler($request); $session->start(); }); } /** * Get the session implementation from the manager. { if (is_null($callback)) { return new HigherOrderTapProxy($value); } $callback($value); return $value; }} * @param \Illuminate\Contracts\Session\Session $session * @return \Illuminate\Contracts\Session\Session */