Illuminate\View\ViewException {#1682 #severity: E_ERROR }
throw new UniqueConstraintViolationException( $this->getName(), $query, $this->prepareBindings($bindings), $e ); } throw new QueryException( $this->getName(), $query, $this->prepareBindings($bindings), $e ); } } // flush out any stray output that might get out before an error occurs or // an exception is thrown. This prevents any partial views from leaking. try { $this->files->getRequire($path, $data); } catch (Throwable $e) { $this->handleViewException($e, $obLevel); } return ltrim(ob_get_clean()); } // Once we have the path to the compiled file, we will evaluate the paths with // typical PHP just like any other templates. We also keep a stack of views // which have been rendered for right exception messages to be generated. try { $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data); } catch (ViewException $e) { if (! str($e->getMessage())->contains(['No such file or directory', 'File does not exist at path'])) { throw $e; } * * @return string */ protected function getContents() { return $this->engine->get($this->path, $this->gatherData()); } /** * Get the data bound to the view instance. * // clear out the sections for any separate views that may be rendered. $this->factory->incrementRender(); $this->factory->callComposer($this); $contents = $this->getContents(); // Once we've finished rendering the view, we'll decrement the render count // so that each section gets flushed out next time a view is created and // no old sections are staying around in the memory of an environment. $this->factory->decrementRender(); * @throws \Throwable */ public function render(callable $callback = null) { try { $contents = $this->renderContents(); $response = isset($callback) ? $callback($this, $contents) : null; // Once we have the contents of the view, we will flush the sections if we are // done rendering all views so that there is nothing left hanging over when // If this content implements the "Renderable" interface then we will call the // render method on the object so we will avoid any "__toString" exceptions // that might be thrown and have their errors obscured by PHP's handling. elseif ($content instanceof Renderable) { $content = $content->render(); } parent::setContent($content); return $this; */ public function __construct($content = '', $status = 200, array $headers = []) { $this->headers = new ResponseHeaderBag($headers); $this->setContent($content); $this->setStatusCode($status); $this->setProtocolVersion('1.0'); } /** * @param array $headers * @return \Illuminate\Http\Response */ public function make($content = '', $status = 200, array $headers = []) { return new Response($content, $status, $headers); } /** * Create a new "no content" response. * { if (is_array($view)) { return $this->make($this->view->first($view, $data), $status, $headers); } return $this->make($this->view->make($view, $data), $status, $headers); } /** * Create a new JSON response instance. * { $this->registerErrorViewPaths(); if ($view = $this->getHttpExceptionView($e)) { try { return response()->view($view, [ 'errors' => new ViewErrorBag, 'exception' => $e, ], $e->getStatusCode(), $e->getHeaders()); } catch (Throwable $t) { config('app.debug') && throw $t; if (! $this->isHttpException($e)) { $e = new HttpException(500, $e->getMessage(), $e); } return $this->toIlluminateResponse( $this->renderHttpException($e), $e )->prepare($request); } /** * Create a Symfony response for the given exception. */ protected function renderExceptionResponse($request, Throwable $e) { return $this->shouldReturnJson($request, $e) ? $this->prepareJsonResponse($request, $e) : $this->prepareResponse($request, $e); } /** * Convert an authentication exception into a response. * return match (true) { $e instanceof HttpResponseException => $e->getResponse(), $e instanceof AuthenticationException => $this->unauthenticated($request, $e), $e instanceof ValidationException => $this->convertValidationExceptionToResponse($e, $request), default => $this->renderExceptionResponse($request, $e), }; } /** * Prepare exception for rendering. * @param \Exception $exception * @return \Illuminate\Http\Response */ public function render($request, Throwable $exception) { return parent::render($request, $exception); } /** * Convert an authentication exception into an unauthenticated response. * $handler = $this->container->make(ExceptionHandler::class); $handler->report($e); $response = $handler->render($passable, $e); if (is_object($response) && method_exists($response, 'withException')) { $response->withException($e); } { return function ($passable) use ($destination) { try { return $destination($passable); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; } /** $this->debugbar->boot(); try { /** @var \Illuminate\Http\Response $response */ $response = $next($request); } catch (Throwable $e) { $response = $this->handleException($request, $e); } // Modify the response to add the Debugbar // 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 ($request->getMethod() == "OPTIONS") { // The client-side application can set only headers allowed in Access-Control-Allow-Headers return response('OK', 200, $headers); } $response = $next($request); foreach ($headers as $key => $value) { $response->header($key, $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); */ 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); }|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
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 ); } /** // 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 ); } // Once we have run the query we will calculate the time that it took to run and * @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 */ 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; } * @param array|string $columns * @return \Illuminate\Support\Collection */ public function get($columns = ['*']) { return collect($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); } /** * @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. * $domain = $dominio[0];
if ($domain == "master"){ echo "Painel Administrativo";}else{
$tmp = \App\Account::where(
['subdomain' => $domain]
)->first();
if($tmp == null) { echo "<h1>";}
else{
echo $tmp->name;
echo " - ".$tmp->subname;
}}
$__data = $data; return (static function () use ($__path, $__data) { extract($__data, EXTR_SKIP); return require $__path; })(); } throw new FileNotFoundException("File does not exist at path {$path}."); } return (static function () use ($__path, $__data) { extract($__data, EXTR_SKIP); return require $__path; })(); } throw new FileNotFoundException("File does not exist at path {$path}."); } // We'll evaluate the contents of the view inside a try/catch block so we can // flush out any stray output that might get out before an error occurs or // an exception is thrown. This prevents any partial views from leaking. try { $this->files->getRequire($path, $data); } catch (Throwable $e) { $this->handleViewException($e, $obLevel); } return ltrim(ob_get_clean()); // Once we have the path to the compiled file, we will evaluate the paths with // typical PHP just like any other templates. We also keep a stack of views // which have been rendered for right exception messages to be generated. try { $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data); } catch (ViewException $e) { if (! str($e->getMessage())->contains(['No such file or directory', 'File does not exist at path'])) { throw $e; } * * @return string */ protected function getContents() { return $this->engine->get($this->path, $this->gatherData()); } /** * Get the data bound to the view instance. * // clear out the sections for any separate views that may be rendered. $this->factory->incrementRender(); $this->factory->callComposer($this); $contents = $this->getContents(); // Once we've finished rendering the view, we'll decrement the render count // so that each section gets flushed out next time a view is created and // no old sections are staying around in the memory of an environment. $this->factory->decrementRender(); * @throws \Throwable */ public function render(callable $callback = null) { try { $contents = $this->renderContents(); $response = isset($callback) ? $callback($this, $contents) : null; // Once we have the contents of the view, we will flush the sections if we are // done rendering all views so that there is nothing left hanging over when // If this content implements the "Renderable" interface then we will call the // render method on the object so we will avoid any "__toString" exceptions // that might be thrown and have their errors obscured by PHP's handling. elseif ($content instanceof Renderable) { $content = $content->render(); } parent::setContent($content); return $this; */ public function __construct($content = '', $status = 200, array $headers = []) { $this->headers = new ResponseHeaderBag($headers); $this->setContent($content); $this->setStatusCode($status); $this->setProtocolVersion('1.0'); } /** * @param array $headers * @return \Illuminate\Http\Response */ public function make($content = '', $status = 200, array $headers = []) { return new Response($content, $status, $headers); } /** * Create a new "no content" response. * { if (is_array($view)) { return $this->make($this->view->first($view, $data), $status, $headers); } return $this->make($this->view->make($view, $data), $status, $headers); } /** * Create a new JSON response instance. * { $this->registerErrorViewPaths(); if ($view = $this->getHttpExceptionView($e)) { try { return response()->view($view, [ 'errors' => new ViewErrorBag, 'exception' => $e, ], $e->getStatusCode(), $e->getHeaders()); } catch (Throwable $t) { config('app.debug') && throw $t; if (! $this->isHttpException($e)) { $e = new HttpException(500, $e->getMessage(), $e); } return $this->toIlluminateResponse( $this->renderHttpException($e), $e )->prepare($request); } /** * Create a Symfony response for the given exception. */ protected function renderExceptionResponse($request, Throwable $e) { return $this->shouldReturnJson($request, $e) ? $this->prepareJsonResponse($request, $e) : $this->prepareResponse($request, $e); } /** * Convert an authentication exception into a response. * return match (true) { $e instanceof HttpResponseException => $e->getResponse(), $e instanceof AuthenticationException => $this->unauthenticated($request, $e), $e instanceof ValidationException => $this->convertValidationExceptionToResponse($e, $request), default => $this->renderExceptionResponse($request, $e), }; } /** * Prepare exception for rendering. * @param \Exception $exception * @return \Illuminate\Http\Response */ public function render($request, Throwable $exception) { return parent::render($request, $exception); } /** * Convert an authentication exception into an unauthenticated response. * $handler = $this->container->make(ExceptionHandler::class); $handler->report($e); $response = $handler->render($passable, $e); if (is_object($response) && method_exists($response, 'withException')) { $response->withException($e); } { return function ($passable) use ($destination) { try { return $destination($passable); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; } /** $this->debugbar->boot(); try { /** @var \Illuminate\Http\Response $response */ $response = $next($request); } catch (Throwable $e) { $response = $this->handleException($request, $e); } // Modify the response to add the Debugbar // 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 ($request->getMethod() == "OPTIONS") { // The client-side application can set only headers allowed in Access-Control-Allow-Headers return response('OK', 200, $headers); } $response = $next($request); foreach ($headers as $key => $value) { $response->header($key, $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); */ 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); }|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
* @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; } try { 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 ); } /** // 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 ); } // Once we have run the query we will calculate the time that it took to run and * @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 */ 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; } * @param array|string $columns * @return \Illuminate\Support\Collection */ public function get($columns = ['*']) { return collect($this->onceWithColumns(Arr::wrap($columns), function () { return $this->processor->processSelect($this, $this->runSelect()); })); } /** * @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. * $domain = $dominio[0];
if ($domain == "master"){ echo "Painel Administrativo";}else{
$tmp = \App\Account::where(
['subdomain' => $domain]
)->first();
if($tmp == null) { echo "<h1>";}
else{
echo $tmp->name;
echo " - ".$tmp->subname;
}}
$__data = $data; return (static function () use ($__path, $__data) { extract($__data, EXTR_SKIP); return require $__path; })(); } throw new FileNotFoundException("File does not exist at path {$path}."); } return (static function () use ($__path, $__data) { extract($__data, EXTR_SKIP); return require $__path; })(); } throw new FileNotFoundException("File does not exist at path {$path}."); } // We'll evaluate the contents of the view inside a try/catch block so we can // flush out any stray output that might get out before an error occurs or // an exception is thrown. This prevents any partial views from leaking. try { $this->files->getRequire($path, $data); } catch (Throwable $e) { $this->handleViewException($e, $obLevel); } return ltrim(ob_get_clean()); // Once we have the path to the compiled file, we will evaluate the paths with // typical PHP just like any other templates. We also keep a stack of views // which have been rendered for right exception messages to be generated. try { $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data); } catch (ViewException $e) { if (! str($e->getMessage())->contains(['No such file or directory', 'File does not exist at path'])) { throw $e; } * * @return string */ protected function getContents() { return $this->engine->get($this->path, $this->gatherData()); } /** * Get the data bound to the view instance. * // clear out the sections for any separate views that may be rendered. $this->factory->incrementRender(); $this->factory->callComposer($this); $contents = $this->getContents(); // Once we've finished rendering the view, we'll decrement the render count // so that each section gets flushed out next time a view is created and // no old sections are staying around in the memory of an environment. $this->factory->decrementRender(); * @throws \Throwable */ public function render(callable $callback = null) { try { $contents = $this->renderContents(); $response = isset($callback) ? $callback($this, $contents) : null; // Once we have the contents of the view, we will flush the sections if we are // done rendering all views so that there is nothing left hanging over when // If this content implements the "Renderable" interface then we will call the // render method on the object so we will avoid any "__toString" exceptions // that might be thrown and have their errors obscured by PHP's handling. elseif ($content instanceof Renderable) { $content = $content->render(); } parent::setContent($content); return $this; */ public function __construct($content = '', $status = 200, array $headers = []) { $this->headers = new ResponseHeaderBag($headers); $this->setContent($content); $this->setStatusCode($status); $this->setProtocolVersion('1.0'); } /** * @param array $headers * @return \Illuminate\Http\Response */ public function make($content = '', $status = 200, array $headers = []) { return new Response($content, $status, $headers); } /** * Create a new "no content" response. * { if (is_array($view)) { return $this->make($this->view->first($view, $data), $status, $headers); } return $this->make($this->view->make($view, $data), $status, $headers); } /** * Create a new JSON response instance. * { $this->registerErrorViewPaths(); if ($view = $this->getHttpExceptionView($e)) { try { return response()->view($view, [ 'errors' => new ViewErrorBag, 'exception' => $e, ], $e->getStatusCode(), $e->getHeaders()); } catch (Throwable $t) { config('app.debug') && throw $t; if (! $this->isHttpException($e)) { $e = new HttpException(500, $e->getMessage(), $e); } return $this->toIlluminateResponse( $this->renderHttpException($e), $e )->prepare($request); } /** * Create a Symfony response for the given exception. */ protected function renderExceptionResponse($request, Throwable $e) { return $this->shouldReturnJson($request, $e) ? $this->prepareJsonResponse($request, $e) : $this->prepareResponse($request, $e); } /** * Convert an authentication exception into a response. * return match (true) { $e instanceof HttpResponseException => $e->getResponse(), $e instanceof AuthenticationException => $this->unauthenticated($request, $e), $e instanceof ValidationException => $this->convertValidationExceptionToResponse($e, $request), default => $this->renderExceptionResponse($request, $e), }; } /** * Prepare exception for rendering. * @param \Exception $exception * @return \Illuminate\Http\Response */ public function render($request, Throwable $exception) { return parent::render($request, $exception); } /** * Convert an authentication exception into an unauthenticated response. * $handler = $this->container->make(ExceptionHandler::class); $handler->report($e); $response = $handler->render($passable, $e); if (is_object($response) && method_exists($response, 'withException')) { $response->withException($e); } { return function ($passable) use ($destination) { try { return $destination($passable); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; } /** $this->debugbar->boot(); try { /** @var \Illuminate\Http\Response $response */ $response = $next($request); } catch (Throwable $e) { $response = $this->handleException($request, $e); } // Modify the response to add the Debugbar // 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 ($request->getMethod() == "OPTIONS") { // The client-side application can set only headers allowed in Access-Control-Allow-Headers return response('OK', 200, $headers); } $response = $next($request); foreach ($headers as $key => $value) { $response->header($key, $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); */ 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); }|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
|
[3/3]
ViewException
|
|---|
Illuminate\View\ViewException:
SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `accounts` where (`subdomain` = www) limit 1) (View: /home/papelzero/public_html/e-diario(backup)/resources/views/errors/404.blade.php)
at /home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829
at Illuminate\View\Engines\CompilerEngine->handleViewException(object(QueryException), 0)
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:60)
at Illuminate\View\Engines\PhpEngine->evaluatePath('/home/papelzero/public_html/e-diario(backup)/storage/framework/views/559f9b709a94b691ab7b85313b5c0ccd.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72)
at Illuminate\View\Engines\CompilerEngine->get('/home/papelzero/public_html/e-diario(backup)/resources/views/errors/404.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/View/View.php:207)
at Illuminate\View\View->getContents()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/View/View.php:190)
at Illuminate\View\View->renderContents()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/View/View.php:159)
at Illuminate\View\View->render()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Http/Response.php:69)
at Illuminate\Http\Response->setContent(object(View))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Http/Response.php:35)
at Illuminate\Http\Response->__construct(object(View), 404, array())
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:58)
at Illuminate\Routing\ResponseFactory->make(object(View), 404, array())
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:88)
at Illuminate\Routing\ResponseFactory->view('errors::404', array('errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)), 404, array())
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:723)
at Illuminate\Foundation\Exceptions\Handler->renderHttpException(object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:650)
at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:556)
at Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse(object(Request), object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:473)
at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/app/Exceptions/Handler.php:48)
at App\Exceptions\Handler->render(object(Request), object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:51)
at Illuminate\Routing\Pipeline->handleException(object(Request), object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:146)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:66)
at Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/app/Http/Middleware/Cors.php:21)
at App\Http\Middleware\Cors->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:99)
at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:119)
at Illuminate\Pipeline\Pipeline->then(object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
at Illuminate\Foundation\Http\Kernel->handle(object(Request))
(/home/papelzero/public_html/e-diario(backup)/public/index.php:57)
|
|
[2/3]
QueryException
|
|---|
Illuminate\Database\QueryException:
SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `accounts` where (`subdomain` = www) limit 1)
at /home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829
at Illuminate\Database\Connection->runQueryCallback('select * from `accounts` where (`subdomain` = ?) limit 1', array('www'), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connection.php:983)
at Illuminate\Database\Connection->tryAgainIfCausedByLostConnection(object(QueryException), 'select * from `accounts` where (`subdomain` = ?) limit 1', array('www'), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connection.php:962)
at Illuminate\Database\Connection->handleQueryException(object(QueryException), 'select * from `accounts` where (`subdomain` = ?) limit 1', array('www'), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connection.php:785)
at Illuminate\Database\Connection->run('select * from `accounts` where (`subdomain` = ?) limit 1', array('www'), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connection.php:414)
at Illuminate\Database\Connection->select('select * from `accounts` where (`subdomain` = ?) limit 1', array('www'), true)
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2871)
at Illuminate\Database\Query\Builder->runSelect()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2860)
at Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3414)
at Illuminate\Database\Query\Builder->onceWithColumns(array('*'), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2859)
at Illuminate\Database\Query\Builder->get(array('*'))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:739)
at Illuminate\Database\Eloquent\Builder->getModels(array('*'))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:723)
at Illuminate\Database\Eloquent\Builder->get(array('*'))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:333)
at Illuminate\Database\Eloquent\Builder->first()
(/home/papelzero/public_html/e-diario(backup)/storage/framework/views/559f9b709a94b691ab7b85313b5c0ccd.php:20)
at require('/home/papelzero/public_html/e-diario(backup)/storage/framework/views/559f9b709a94b691ab7b85313b5c0ccd.php')
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:123)
at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124)
at Illuminate\Filesystem\Filesystem->getRequire('/home/papelzero/public_html/e-diario(backup)/storage/framework/views/559f9b709a94b691ab7b85313b5c0ccd.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58)
at Illuminate\View\Engines\PhpEngine->evaluatePath('/home/papelzero/public_html/e-diario(backup)/storage/framework/views/559f9b709a94b691ab7b85313b5c0ccd.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72)
at Illuminate\View\Engines\CompilerEngine->get('/home/papelzero/public_html/e-diario(backup)/resources/views/errors/404.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/View/View.php:207)
at Illuminate\View\View->getContents()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/View/View.php:190)
at Illuminate\View\View->renderContents()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/View/View.php:159)
at Illuminate\View\View->render()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Http/Response.php:69)
at Illuminate\Http\Response->setContent(object(View))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Http/Response.php:35)
at Illuminate\Http\Response->__construct(object(View), 404, array())
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:58)
at Illuminate\Routing\ResponseFactory->make(object(View), 404, array())
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:88)
at Illuminate\Routing\ResponseFactory->view('errors::404', array('errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)), 404, array())
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:723)
at Illuminate\Foundation\Exceptions\Handler->renderHttpException(object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:650)
at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:556)
at Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse(object(Request), object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:473)
at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/app/Exceptions/Handler.php:48)
at App\Exceptions\Handler->render(object(Request), object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:51)
at Illuminate\Routing\Pipeline->handleException(object(Request), object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:146)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:66)
at Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/app/Http/Middleware/Cors.php:21)
at App\Http\Middleware\Cors->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:99)
at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:119)
at Illuminate\Pipeline\Pipeline->then(object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
at Illuminate\Foundation\Http\Kernel->handle(object(Request))
(/home/papelzero/public_html/e-diario(backup)/public/index.php:57)
|
|
[1/3]
PDOException
|
|---|
PDOException:
SQLSTATE[HY000] [2002] Connection refused
at /home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65
at PDO->__construct('mysql:host=127.0.0.1;port=3306;dbname=papelzero_congonhas_teste', 'papelzero_suporte', object(SensitiveParameterValue), array(0, 2, 0, false, false))
(/home/papelzero/public_html/e-diario(backup)/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=papelzero_congonhas_teste', 'papelzero_suporte', 'rlv741852@', array(0, 2, 0, false, false))
(/home/papelzero/public_html/e-diario(backup)/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=papelzero_congonhas_teste', 'papelzero_suporte', 'rlv741852@', array(0, 2, 0, false, false))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:48)
at Illuminate\Database\Connectors\Connector->createConnection('mysql:host=127.0.0.1;port=3306;dbname=papelzero_congonhas_teste', array('driver' => 'mysql', 'host' => '127.0.0.1', 'port' => '3306', 'database' => 'papelzero_congonhas_teste', 'username' => 'papelzero_suporte', 'password' => 'rlv741852@', 'unix_socket' => '', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'strict' => true, 'engine' => null, 'name' => 'mysql'), array(0, 2, 0, false, false))
(/home/papelzero/public_html/e-diario(backup)/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' => 'papelzero_congonhas_teste', 'username' => 'papelzero_suporte', 'password' => 'rlv741852@', 'unix_socket' => '', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'strict' => true, 'engine' => null, 'name' => 'mysql'))
(/home/papelzero/public_html/e-diario(backup)/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/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1339)
at Illuminate\Database\Connection->getPdo()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1375)
at Illuminate\Database\Connection->getReadPdo()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connection.php:528)
at Illuminate\Database\Connection->getPdoForSelect(true)
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connection.php:423)
at Illuminate\Database\Connection->Illuminate\Database\{closure}('select * from `accounts` where (`subdomain` = ?) limit 1', array('www'))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connection.php:816)
at Illuminate\Database\Connection->runQueryCallback('select * from `accounts` where (`subdomain` = ?) limit 1', array('www'), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connection.php:983)
at Illuminate\Database\Connection->tryAgainIfCausedByLostConnection(object(QueryException), 'select * from `accounts` where (`subdomain` = ?) limit 1', array('www'), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connection.php:962)
at Illuminate\Database\Connection->handleQueryException(object(QueryException), 'select * from `accounts` where (`subdomain` = ?) limit 1', array('www'), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connection.php:785)
at Illuminate\Database\Connection->run('select * from `accounts` where (`subdomain` = ?) limit 1', array('www'), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Connection.php:414)
at Illuminate\Database\Connection->select('select * from `accounts` where (`subdomain` = ?) limit 1', array('www'), true)
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2871)
at Illuminate\Database\Query\Builder->runSelect()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2860)
at Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3414)
at Illuminate\Database\Query\Builder->onceWithColumns(array('*'), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2859)
at Illuminate\Database\Query\Builder->get(array('*'))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:739)
at Illuminate\Database\Eloquent\Builder->getModels(array('*'))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:723)
at Illuminate\Database\Eloquent\Builder->get(array('*'))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:333)
at Illuminate\Database\Eloquent\Builder->first()
(/home/papelzero/public_html/e-diario(backup)/storage/framework/views/559f9b709a94b691ab7b85313b5c0ccd.php:20)
at require('/home/papelzero/public_html/e-diario(backup)/storage/framework/views/559f9b709a94b691ab7b85313b5c0ccd.php')
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:123)
at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124)
at Illuminate\Filesystem\Filesystem->getRequire('/home/papelzero/public_html/e-diario(backup)/storage/framework/views/559f9b709a94b691ab7b85313b5c0ccd.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58)
at Illuminate\View\Engines\PhpEngine->evaluatePath('/home/papelzero/public_html/e-diario(backup)/storage/framework/views/559f9b709a94b691ab7b85313b5c0ccd.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72)
at Illuminate\View\Engines\CompilerEngine->get('/home/papelzero/public_html/e-diario(backup)/resources/views/errors/404.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/View/View.php:207)
at Illuminate\View\View->getContents()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/View/View.php:190)
at Illuminate\View\View->renderContents()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/View/View.php:159)
at Illuminate\View\View->render()
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Http/Response.php:69)
at Illuminate\Http\Response->setContent(object(View))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Http/Response.php:35)
at Illuminate\Http\Response->__construct(object(View), 404, array())
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:58)
at Illuminate\Routing\ResponseFactory->make(object(View), 404, array())
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:88)
at Illuminate\Routing\ResponseFactory->view('errors::404', array('errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)), 404, array())
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:723)
at Illuminate\Foundation\Exceptions\Handler->renderHttpException(object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:650)
at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:556)
at Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse(object(Request), object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:473)
at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/app/Exceptions/Handler.php:48)
at App\Exceptions\Handler->render(object(Request), object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:51)
at Illuminate\Routing\Pipeline->handleException(object(Request), object(NotFoundHttpException))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:146)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:66)
at Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/app/Http/Middleware/Cors.php:21)
at App\Http\Middleware\Cors->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:99)
at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:119)
at Illuminate\Pipeline\Pipeline->then(object(Closure))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
(/home/papelzero/public_html/e-diario(backup)/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
at Illuminate\Foundation\Http\Kernel->handle(object(Request))
(/home/papelzero/public_html/e-diario(backup)/public/index.php:57)
|