Illuminate\View\ViewException {#1471 #severity: E_ERROR }
throw new UniqueConstraintViolationException(
$this->getName(), $query, $this->prepareBindings($bindings), $e
);
}
throw new QueryException(
$this->getName(), $query, $this->prepareBindings($bindings), $e
);
}
}
\Illuminate\View\Engines\PhpEngine::handleViewException($e, $obLevel);
return;
}
parent::handleViewException($e, $obLevel);
}
public function shouldBypassExceptionForLivewire(\Throwable $e, $obLevel)
{
$uses = array_flip(class_uses_recursive($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());
}
}
protected function evaluatePath($__path, $__data)
{
if (! ExtendBlade::isRenderingLivewireComponent()) {
return parent::evaluatePath($__path, $__data);
}
$obLevel = ob_get_level();
ob_start();
// 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;
}
use function Livewire\trigger;
class ExtendedCompilerEngine extends \Illuminate\View\Engines\CompilerEngine {
public function get($path, array $data = [])
{
if (! ExtendBlade::isRenderingLivewireComponent()) return parent::get($path, $data);
$currentComponent = ExtendBlade::currentRendering();
trigger('view:compile', $currentComponent, $path);
*
* @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');
}
/**
$response instanceof JsonSerializable ||
$response instanceof stdClass ||
is_array($response))) {
$response = new JsonResponse($response);
} elseif (! $response instanceof SymfonyResponse) {
$response = new Response($response, 200, ['Content-Type' => 'text/html']);
}
if ($response->getStatusCode() === Response::HTTP_NOT_MODIFIED) {
$response->setNotModified();
}
if (! $instance) {
throw new RuntimeException('A facade root has not been set.');
}
return $instance->$method(...$args);
}
}
*/
protected function toResponse(Request $request, MatchedView $matchedView): Response
{
$view = View::file($matchedView->path, $matchedView->data);
return Route::toResponse($request, app()->call(
$matchedView->renderUsing(),
['view' => $view, ...$view->getData()]
) ?? $view);
}
}
($this->onViewMatch)($matchedView);
}
$response = $this->renderUsing
? ($this->renderUsing)($request, $matchedView)
: $this->toResponse($request, $matchedView);
$app = app();
$app->make(FolioManager::class)->terminateUsing(function () use ($middleware, $app, $request, $response) {
$middleware->filter(fn ($m) => is_string($m) && class_exists($m) && method_exists($m, 'terminate'))
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw $exception;
}
return $next($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);
$this->isReading($request) ||
$this->runningUnitTests() ||
$this->inExceptArray($request) ||
$this->tokensMatch($request)
) {
return tap($next($request), function ($response) use ($request) {
if ($this->shouldAddXsrfTokenCookie()) {
$this->addCookieToResponse($request, $response);
}
});
}
// 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);
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($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);
$this->startSession($request, $session)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
if ($this->manager->shouldBlock() ||
($request->route() instanceof Route && $request->route()->locksFor())) {
return $this->handleRequestWhileBlocking($request, $session, $next);
}
return $this->handleStatefulRequest($request, $session, $next);
}
/**
* Handle the given request within session state.
*
// 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);
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($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);
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies 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);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$middleware = collect($this->middleware($mountPath, $matchedView));
return (new Pipeline(app()))
->send($request)
->through($middleware->all())
->then(function (Request $request) use ($matchedView, $middleware) {
if ($this->onViewMatch) {
($this->onViewMatch)($matchedView);
}
$response = $this->renderUsing
return (new RequestHandler(
$mountPaths,
$this->renderUsing,
fn (MatchedView $matchedView) => $this->lastMatchedView = $matchedView,
))($request);
};
}
/**
* Get the middleware that should be applied to the Folio handled URI.
* @param callable $callable
* @return mixed
*/
public function dispatch(Route $route, $callable)
{
return $callable(...array_values($this->resolveParameters($route, $callable)));
}
/**
* Resolve the parameters for the callable.
*
if ($this->isSerializedClosure()) {
$callable = unserialize($this->action['uses'])->getClosure();
}
return $this->container[CallableDispatcher::class]->dispatch($this, $callable);
}
/**
* Determine if the route action is a serialized Closure.
*
try {
if ($this->isControllerAction()) {
return $this->runController();
}
return $this->runCallable();
} catch (HttpResponseException $e) {
return $e->getResponse();
}
}
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(fn ($request) => $this->prepareResponse(
$request, $route->run()
));
}
/**
* Gather the middleware for the given route with resolved class names.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} 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.
*
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(fn ($request) => $this->prepareResponse(
$request, $route->run()
));
}
/**
$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);
}
};
}
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
if ($response instanceof Response && SupportDisablingBackButtonCache::$disableBackButtonCache){
$response->headers->add([
"Pragma" => "no-cache",
"Expires" => "Fri, 01 Jan 1990 00:00:00 GMT",
// 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);
* @param string|null ...$guards
* @return mixed
*/
public function handle($request, Closure $next, ...$guards)
{
$response = $next($request);
if (isset($_ENV['VAPOR_SSM_PATH']) && $response->getStatusCode() === 404) {
$requestUri = $request->getRequestUri();
if (! in_array(ltrim($requestUri, '/'), config('vapor.serve_assets', []))) {
// 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);
* @return \Illuminate\Http\Response
*/
public function handle($request, Closure $next)
{
if (! $this->hasMatchingPath($request)) {
return $next($request);
}
$this->cors->setOptions($this->container['config']->get('cors', []));
if ($this->cors->isPreflightRequest($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);
{
$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);
{
$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);
}
new EnsureOnNakedDomain,
new RedirectStaticAssets,
new EnsureVanityUrlIsNotIndexed,
new EnsureBinaryEncoding(),
])->then(function ($request) use ($kernel) {
return $kernel->handle($request);
});
$kernel->terminate($request, $response);
return $response;
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
* @param callable $next
* @return mixed
*/
public function handle($request, $next)
{
$response = $next($request);
if (static::isBase64EncodingRequired($response)) {
$response->headers->set('X-Vapor-Base64-Encode', 'True');
}
// 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);
* @param callable $next
* @return mixed
*/
public function handle($request, $next)
{
$response = $next($request);
if ('https://'.$request->getHttpHost() === $_ENV['APP_VANITY_URL']) {
$response->headers->set('X-Robots-Tag', 'noindex, nofollow', true);
}
// 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);
return new RedirectResponse($_ENV['ASSET_URL'].'/robots.txt', 302, [
'Cache-Control' => 'public, max-age=3600',
]);
}
return $next($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);
$request->fullUrl()
), 301);
}
}
return $next($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);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through([
new EnsureOnNakedDomain,
new RedirectStaticAssets,
new EnsureVanityUrlIsNotIndexed,
new EnsureBinaryEncoding(),
])->then(function ($request) use ($kernel) {
return $kernel->handle($request);
});
$kernel->terminate($request, $response);
}
$this->app->terminate();
}
} else {
$response = $this->sendRequest($request);
}
return $response;
}
|
*/
$handler = new HttpKernel($app);
$response = $handler->handle(Request::capture());
$response->send();
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 array $bindings
* @return bool
*/
public function statement($query, $bindings = [])
{
return $this->run($query, $bindings, function ($query, $bindings) {
if ($this->pretending()) {
return true;
}
$statement = $this->getPdo()->prepare($query);
*
* @return bool
*/
public function enableForeignKeyConstraints()
{
return $this->connection->statement(
$this->grammar->compileEnableForeignKeyConstraints()
);
}
/**
if ($enableForeignKeyConstraints === null) {
return;
}
$enableForeignKeyConstraints
? $this->getSchemaBuilder()->enableForeignKeyConstraints()
: $this->getSchemaBuilder()->disableForeignKeyConstraints();
}
/**
* Escape a binary value for safe SQL embedding.
}
return match ($driver) {
'mysql' => new MySqlConnection($connection, $database, $prefix, $config),
'pgsql' => new PostgresConnection($connection, $database, $prefix, $config),
'sqlite' => new SQLiteConnection($connection, $database, $prefix, $config),
'sqlsrv' => new SqlServerConnection($connection, $database, $prefix, $config),
default => throw new InvalidArgumentException("Unsupported driver [{$driver}]."),
};
}
}
*/
protected function createSingleConnection(array $config)
{
$pdo = $this->createPdoResolver($config);
return $this->createConnection(
$config['driver'], $pdo, $config['database'], $config['prefix'], $config
);
}
/**
if (isset($config['read'])) {
return $this->createReadWriteConnection($config);
}
return $this->createSingleConnection($config);
}
/**
* Parse and prepare the database configuration.
*
// resolver for the drivers themselves which applies to all connections.
if (isset($this->extensions[$driver = $config['driver']])) {
return call_user_func($this->extensions[$driver], $config, $name);
}
return $this->factory->make($config, $name);
}
/**
* Get the configuration for a connection.
*
// If we haven't created this connection, we'll create it based on the config
// provided in the application. Once we've created the connections we will
// set the "fetch mode" for PDO which determines the query return types.
if (! isset($this->connections[$name])) {
$this->connections[$name] = $this->configure(
$this->makeConnection($database), $type
);
if ($this->app->bound('events')) {
$this->app['events']->dispatch(
new ConnectionEstablished($this->connections[$name])
* @param string|null $connection
* @return \Illuminate\Database\Connection
*/
public static function resolveConnection($connection = null)
{
return static::$resolver->connection($connection);
}
/**
* Get the connection resolver instance.
*
*
* @return \Illuminate\Database\Connection
*/
public function getConnection()
{
return static::resolveConnection($this->getConnectionName());
}
/**
* Get the current connection name for the model.
*
*
* @return \Illuminate\Database\Query\Builder
*/
protected function newBaseQueryBuilder()
{
return $this->getConnection()->query();
}
/**
* Create a new Eloquent Collection instance.
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
public function newModelQuery()
{
return $this->newEloquentBuilder(
$this->newBaseQueryBuilder()
)->setModel($this);
}
/**
* Get a new query builder with no relationships loaded.
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
public function newQueryWithoutScopes()
{
return $this->newModelQuery()
->with($this->with)
->withCount($this->withCount);
}
/**
*
* @return \Illuminate\Database\Eloquent\Builder
*/
public function newQuery()
{
return $this->registerGlobalScopes($this->newQueryWithoutScopes());
}
/**
* Get a new query builder that doesn't have any global scopes or eager loading.
*
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.
*
'sortOrder' => 'desc'
]);
mount(function (){
$this->results = $this->numResults;
$this->total = Post::count();
});
$loadMore = function(){
$this->results += $this->numResults;
if ($this->results >= $this->total) {
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
});
}
/**
* Call a string reference to a class using Class@method syntax.
* @param mixed ...$args
* @return mixed
*/
public static function unwrapIfClosure($value, ...$args)
{
return $value instanceof Closure ? $value(...$args) : $value;
}
/**
* Get the class name of the given parameter's type, if possible.
*
* @return mixed
*/
protected static function callBoundMethod($container, $callback, $default)
{
if (! is_array($callback)) {
return Util::unwrapIfClosure($default);
}
// Here we need to turn the array callable into a Class@method string we can use to
// examine the container and see if there are any method bindings for this given
// method. If there are, we can call this method binding callback immediately.
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
});
}
/**
$this->buildStack[] = $className;
$pushedToBuildStack = true;
}
$result = BoundMethod::call($this, $callback, $parameters, $defaultMethod);
if ($pushedToBuildStack) {
array_pop($this->buildStack);
}
public function execute(CompileContext $context, Component $component, array $arguments): mixed
{
$hook = $context->{$this->hookName};
if ($this->hookName === 'mount') {
return Container::getInstance()->call(
Closure::bind($hook, $component, $component::class), $arguments
);
}
return call_user_func_array(Closure::bind($hook, $component, $component::class), $arguments);
public function mount()
{
(new Actions\InitializeState)->execute(static::$__context, $this, get_defined_vars());
(new Actions\CallHook('mount'))->execute(static::$__context, $this, get_defined_vars());
}
public function loadMore()
{
$arguments = [static::$__context, $this, func_get_args()];
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
});
}
/**
* Call a string reference to a class using Class@method syntax.
* @param mixed ...$args
* @return mixed
*/
public static function unwrapIfClosure($value, ...$args)
{
return $value instanceof Closure ? $value(...$args) : $value;
}
/**
* Get the class name of the given parameter's type, if possible.
*
if ($container->hasMethodBinding($method)) {
return $container->callMethodBinding($method, $callback[0]);
}
return Util::unwrapIfClosure($default);
}
/**
* Normalize the given callback into a Class@method string.
*
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
});
}
/**
function __call($method, $params)
{
if (! method_exists($this->target, $method)) return value($this->fallback);
try {
return ImplicitlyBoundMethod::call(app(), [$this->target, $method], $params);
} catch (\Throwable $e) {
$shouldPropagate = true;
$stopPropagation = function () use (&$shouldPropagate) {
$shouldPropagate = false;
}
public function callHook($name, $params = [])
{
if (method_exists($this->component, $name)) {
wrap($this->component)->__call($name, $params);
}
}
function callTraitHook($name, $params = [])
{
$this->callHook('boot');
$this->callTraitHook('boot');
$this->callTraitHook('initialize');
$this->callHook('mount', $params);
$this->callTraitHook('mount', $params);
$this->callHook('booted');
$this->callTraitHook('booted');
}
function callBoot(...$params) {
if (method_exists($this, 'boot')) $this->boot(...$params);
}
function callMount(...$params) {
if (method_exists($this, 'mount')) $this->mount(...$params);
}
function callHydrate(...$params) {
if (method_exists($this, 'hydrate')) $this->hydrate(...$params);
}
foreach (static::$componentHooks as $hook) {
on('mount', function ($component, $params, $key, $parent) use ($hook) {
$hook = static::initializeHook($hook, $component);
$hook->callBoot();
$hook->callMount($params, $parent);
});
on('hydrate', function ($component, $memo) use ($hook) {
$hook = static::initializeHook($hook, $component);
$hook->callBoot();
($this->listeners[$name] ?? []),
($this->listenersAfter[$name] ?? []),
);
foreach ($listeners as $callback) {
$result = $callback(...$params);
if ($result) {
$middlewares[] = $result;
}
}
function pipe($subject) {
return new Pipe($subject);
}
function trigger($name, ...$params) {
return app(\Livewire\EventBus::class)->trigger($name, ...$params);
}
function on($name, $callback) {
return app(\Livewire\EventBus::class)->on($name, $callback);
}
$this->pushOntoComponentStack($component);
$context = new ComponentContext($component, mounting: true);
if (config('app.debug')) $start = microtime(true);
$finish = trigger('mount', $component, $params, $key, $parent);
if (config('app.debug')) trigger('profile', 'mount', $component->getId(), [$start, microtime(true)]);
if (config('app.debug')) $start = microtime(true);
$html = $this->render($component, '<div></div>');
if (config('app.debug')) trigger('profile', 'render', $component->getId(), [$start, microtime(true)]);
return app(ComponentRegistry::class)->resolveMissingComponent($resolver);
}
function mount($name, $params = [], $key = null)
{
return app(HandleComponents::class)->mount($name, $params, $key);
}
function snapshot($component)
{
return app(HandleComponents::class)->snapshot($component);
$params = is_string($params) ? [] : $params;
try {
InitializeState::$currentMountParameters = array_keys($params);
return parent::mount($name, $params, $key);
} finally {
InitializeState::$currentMountParameters = [];
}
}
return [$name, $params];
};
[$__name, $__params] = $__split("volt-anonymous-fragment-eyJuYW1lIjoiYmxvZy5pbmRleCIsInBhdGgiOiJyZXNvdXJjZXNcL3ZpZXdzXC9wYWdlc1wvYmxvZ1wvaW5kZXguYmxhZGUucGhwIn0=", Livewire\Volt\Precompilers\ExtractFragments::componentArguments([...get_defined_vars(), ...array (
)]));
$__html = app('livewire')->mount($__name, $__params, 'HaIvKmN', $__slots ?? [], get_defined_vars());
echo $__html;
unset($__html);
unset($__name);
$__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());
}
protected function evaluatePath($__path, $__data)
{
if (! ExtendBlade::isRenderingLivewireComponent()) {
return parent::evaluatePath($__path, $__data);
}
$obLevel = ob_get_level();
ob_start();
// 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;
}
use function Livewire\trigger;
class ExtendedCompilerEngine extends \Illuminate\View\Engines\CompilerEngine {
public function get($path, array $data = [])
{
if (! ExtendBlade::isRenderingLivewireComponent()) return parent::get($path, $data);
$currentComponent = ExtendBlade::currentRendering();
trigger('view:compile', $currentComponent, $path);
*
* @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');
}
/**
$response instanceof JsonSerializable ||
$response instanceof stdClass ||
is_array($response))) {
$response = new JsonResponse($response);
} elseif (! $response instanceof SymfonyResponse) {
$response = new Response($response, 200, ['Content-Type' => 'text/html']);
}
if ($response->getStatusCode() === Response::HTTP_NOT_MODIFIED) {
$response->setNotModified();
}
if (! $instance) {
throw new RuntimeException('A facade root has not been set.');
}
return $instance->$method(...$args);
}
}
*/
protected function toResponse(Request $request, MatchedView $matchedView): Response
{
$view = View::file($matchedView->path, $matchedView->data);
return Route::toResponse($request, app()->call(
$matchedView->renderUsing(),
['view' => $view, ...$view->getData()]
) ?? $view);
}
}
($this->onViewMatch)($matchedView);
}
$response = $this->renderUsing
? ($this->renderUsing)($request, $matchedView)
: $this->toResponse($request, $matchedView);
$app = app();
$app->make(FolioManager::class)->terminateUsing(function () use ($middleware, $app, $request, $response) {
$middleware->filter(fn ($m) => is_string($m) && class_exists($m) && method_exists($m, 'terminate'))
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw $exception;
}
return $next($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);
$this->isReading($request) ||
$this->runningUnitTests() ||
$this->inExceptArray($request) ||
$this->tokensMatch($request)
) {
return tap($next($request), function ($response) use ($request) {
if ($this->shouldAddXsrfTokenCookie()) {
$this->addCookieToResponse($request, $response);
}
});
}
// 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);
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($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);
$this->startSession($request, $session)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
if ($this->manager->shouldBlock() ||
($request->route() instanceof Route && $request->route()->locksFor())) {
return $this->handleRequestWhileBlocking($request, $session, $next);
}
return $this->handleStatefulRequest($request, $session, $next);
}
/**
* Handle the given request within session state.
*
// 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);
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($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);
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies 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);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$middleware = collect($this->middleware($mountPath, $matchedView));
return (new Pipeline(app()))
->send($request)
->through($middleware->all())
->then(function (Request $request) use ($matchedView, $middleware) {
if ($this->onViewMatch) {
($this->onViewMatch)($matchedView);
}
$response = $this->renderUsing
return (new RequestHandler(
$mountPaths,
$this->renderUsing,
fn (MatchedView $matchedView) => $this->lastMatchedView = $matchedView,
))($request);
};
}
/**
* Get the middleware that should be applied to the Folio handled URI.
* @param callable $callable
* @return mixed
*/
public function dispatch(Route $route, $callable)
{
return $callable(...array_values($this->resolveParameters($route, $callable)));
}
/**
* Resolve the parameters for the callable.
*
if ($this->isSerializedClosure()) {
$callable = unserialize($this->action['uses'])->getClosure();
}
return $this->container[CallableDispatcher::class]->dispatch($this, $callable);
}
/**
* Determine if the route action is a serialized Closure.
*
try {
if ($this->isControllerAction()) {
return $this->runController();
}
return $this->runCallable();
} catch (HttpResponseException $e) {
return $e->getResponse();
}
}
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(fn ($request) => $this->prepareResponse(
$request, $route->run()
));
}
/**
* Gather the middleware for the given route with resolved class names.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} 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.
*
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(fn ($request) => $this->prepareResponse(
$request, $route->run()
));
}
/**
$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);
}
};
}
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
if ($response instanceof Response && SupportDisablingBackButtonCache::$disableBackButtonCache){
$response->headers->add([
"Pragma" => "no-cache",
"Expires" => "Fri, 01 Jan 1990 00:00:00 GMT",
// 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);
* @param string|null ...$guards
* @return mixed
*/
public function handle($request, Closure $next, ...$guards)
{
$response = $next($request);
if (isset($_ENV['VAPOR_SSM_PATH']) && $response->getStatusCode() === 404) {
$requestUri = $request->getRequestUri();
if (! in_array(ltrim($requestUri, '/'), config('vapor.serve_assets', []))) {
// 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);
* @return \Illuminate\Http\Response
*/
public function handle($request, Closure $next)
{
if (! $this->hasMatchingPath($request)) {
return $next($request);
}
$this->cors->setOptions($this->container['config']->get('cors', []));
if ($this->cors->isPreflightRequest($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);
{
$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);
{
$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);
}
new EnsureOnNakedDomain,
new RedirectStaticAssets,
new EnsureVanityUrlIsNotIndexed,
new EnsureBinaryEncoding(),
])->then(function ($request) use ($kernel) {
return $kernel->handle($request);
});
$kernel->terminate($request, $response);
return $response;
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
* @param callable $next
* @return mixed
*/
public function handle($request, $next)
{
$response = $next($request);
if (static::isBase64EncodingRequired($response)) {
$response->headers->set('X-Vapor-Base64-Encode', 'True');
}
// 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);
* @param callable $next
* @return mixed
*/
public function handle($request, $next)
{
$response = $next($request);
if ('https://'.$request->getHttpHost() === $_ENV['APP_VANITY_URL']) {
$response->headers->set('X-Robots-Tag', 'noindex, nofollow', true);
}
// 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);
return new RedirectResponse($_ENV['ASSET_URL'].'/robots.txt', 302, [
'Cache-Control' => 'public, max-age=3600',
]);
}
return $next($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);
$request->fullUrl()
), 301);
}
}
return $next($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);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through([
new EnsureOnNakedDomain,
new RedirectStaticAssets,
new EnsureVanityUrlIsNotIndexed,
new EnsureBinaryEncoding(),
])->then(function ($request) use ($kernel) {
return $kernel->handle($request);
});
$kernel->terminate($request, $response);
}
$this->app->terminate();
}
} else {
$response = $this->sendRequest($request);
}
return $response;
}
|
*/
$handler = new HttpKernel($app);
$response = $handler->handle(Request::capture());
$response->send();
// Here we'll verify that the SQLite database exists before going any further
// as the developer probably wants to know if the database exists and this
// SQLite driver will not throw any exception if it does not by default.
if ($path === false) {
throw new SQLiteDatabaseDoesNotExistException($config['database']);
}
return $this->createConnection("sqlite:{$path}", $config, $options);
}
}
* @param array $config
* @return \Closure
*/
protected function createPdoResolverWithoutHosts(array $config)
{
return fn () => $this->createConnector($config)->connect($config);
}
/**
* Create a connector instance based on the configuration.
*
* @return \PDO
*/
public function getPdo()
{
if ($this->pdo instanceof Closure) {
return $this->pdo = call_user_func($this->pdo);
}
return $this->pdo;
}
return $this->run($query, $bindings, function ($query, $bindings) {
if ($this->pretending()) {
return true;
}
$statement = $this->getPdo()->prepare($query);
$this->bindValues($statement, $this->prepareBindings($bindings));
$this->recordsHaveBeenModified();
{
// 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.
// 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 array $bindings
* @return bool
*/
public function statement($query, $bindings = [])
{
return $this->run($query, $bindings, function ($query, $bindings) {
if ($this->pretending()) {
return true;
}
$statement = $this->getPdo()->prepare($query);
*
* @return bool
*/
public function enableForeignKeyConstraints()
{
return $this->connection->statement(
$this->grammar->compileEnableForeignKeyConstraints()
);
}
/**
if ($enableForeignKeyConstraints === null) {
return;
}
$enableForeignKeyConstraints
? $this->getSchemaBuilder()->enableForeignKeyConstraints()
: $this->getSchemaBuilder()->disableForeignKeyConstraints();
}
/**
* Escape a binary value for safe SQL embedding.
}
return match ($driver) {
'mysql' => new MySqlConnection($connection, $database, $prefix, $config),
'pgsql' => new PostgresConnection($connection, $database, $prefix, $config),
'sqlite' => new SQLiteConnection($connection, $database, $prefix, $config),
'sqlsrv' => new SqlServerConnection($connection, $database, $prefix, $config),
default => throw new InvalidArgumentException("Unsupported driver [{$driver}]."),
};
}
}
*/
protected function createSingleConnection(array $config)
{
$pdo = $this->createPdoResolver($config);
return $this->createConnection(
$config['driver'], $pdo, $config['database'], $config['prefix'], $config
);
}
/**
if (isset($config['read'])) {
return $this->createReadWriteConnection($config);
}
return $this->createSingleConnection($config);
}
/**
* Parse and prepare the database configuration.
*
// resolver for the drivers themselves which applies to all connections.
if (isset($this->extensions[$driver = $config['driver']])) {
return call_user_func($this->extensions[$driver], $config, $name);
}
return $this->factory->make($config, $name);
}
/**
* Get the configuration for a connection.
*
// If we haven't created this connection, we'll create it based on the config
// provided in the application. Once we've created the connections we will
// set the "fetch mode" for PDO which determines the query return types.
if (! isset($this->connections[$name])) {
$this->connections[$name] = $this->configure(
$this->makeConnection($database), $type
);
if ($this->app->bound('events')) {
$this->app['events']->dispatch(
new ConnectionEstablished($this->connections[$name])
* @param string|null $connection
* @return \Illuminate\Database\Connection
*/
public static function resolveConnection($connection = null)
{
return static::$resolver->connection($connection);
}
/**
* Get the connection resolver instance.
*
*
* @return \Illuminate\Database\Connection
*/
public function getConnection()
{
return static::resolveConnection($this->getConnectionName());
}
/**
* Get the current connection name for the model.
*
*
* @return \Illuminate\Database\Query\Builder
*/
protected function newBaseQueryBuilder()
{
return $this->getConnection()->query();
}
/**
* Create a new Eloquent Collection instance.
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
public function newModelQuery()
{
return $this->newEloquentBuilder(
$this->newBaseQueryBuilder()
)->setModel($this);
}
/**
* Get a new query builder with no relationships loaded.
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
public function newQueryWithoutScopes()
{
return $this->newModelQuery()
->with($this->with)
->withCount($this->withCount);
}
/**
*
* @return \Illuminate\Database\Eloquent\Builder
*/
public function newQuery()
{
return $this->registerGlobalScopes($this->newQueryWithoutScopes());
}
/**
* Get a new query builder that doesn't have any global scopes or eager loading.
*
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.
*
'sortOrder' => 'desc'
]);
mount(function (){
$this->results = $this->numResults;
$this->total = Post::count();
});
$loadMore = function(){
$this->results += $this->numResults;
if ($this->results >= $this->total) {
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
});
}
/**
* Call a string reference to a class using Class@method syntax.
* @param mixed ...$args
* @return mixed
*/
public static function unwrapIfClosure($value, ...$args)
{
return $value instanceof Closure ? $value(...$args) : $value;
}
/**
* Get the class name of the given parameter's type, if possible.
*
* @return mixed
*/
protected static function callBoundMethod($container, $callback, $default)
{
if (! is_array($callback)) {
return Util::unwrapIfClosure($default);
}
// Here we need to turn the array callable into a Class@method string we can use to
// examine the container and see if there are any method bindings for this given
// method. If there are, we can call this method binding callback immediately.
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
});
}
/**
$this->buildStack[] = $className;
$pushedToBuildStack = true;
}
$result = BoundMethod::call($this, $callback, $parameters, $defaultMethod);
if ($pushedToBuildStack) {
array_pop($this->buildStack);
}
public function execute(CompileContext $context, Component $component, array $arguments): mixed
{
$hook = $context->{$this->hookName};
if ($this->hookName === 'mount') {
return Container::getInstance()->call(
Closure::bind($hook, $component, $component::class), $arguments
);
}
return call_user_func_array(Closure::bind($hook, $component, $component::class), $arguments);
public function mount()
{
(new Actions\InitializeState)->execute(static::$__context, $this, get_defined_vars());
(new Actions\CallHook('mount'))->execute(static::$__context, $this, get_defined_vars());
}
public function loadMore()
{
$arguments = [static::$__context, $this, func_get_args()];
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
});
}
/**
* Call a string reference to a class using Class@method syntax.
* @param mixed ...$args
* @return mixed
*/
public static function unwrapIfClosure($value, ...$args)
{
return $value instanceof Closure ? $value(...$args) : $value;
}
/**
* Get the class name of the given parameter's type, if possible.
*
if ($container->hasMethodBinding($method)) {
return $container->callMethodBinding($method, $callback[0]);
}
return Util::unwrapIfClosure($default);
}
/**
* Normalize the given callback into a Class@method string.
*
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
});
}
/**
function __call($method, $params)
{
if (! method_exists($this->target, $method)) return value($this->fallback);
try {
return ImplicitlyBoundMethod::call(app(), [$this->target, $method], $params);
} catch (\Throwable $e) {
$shouldPropagate = true;
$stopPropagation = function () use (&$shouldPropagate) {
$shouldPropagate = false;
}
public function callHook($name, $params = [])
{
if (method_exists($this->component, $name)) {
wrap($this->component)->__call($name, $params);
}
}
function callTraitHook($name, $params = [])
{
$this->callHook('boot');
$this->callTraitHook('boot');
$this->callTraitHook('initialize');
$this->callHook('mount', $params);
$this->callTraitHook('mount', $params);
$this->callHook('booted');
$this->callTraitHook('booted');
}
function callBoot(...$params) {
if (method_exists($this, 'boot')) $this->boot(...$params);
}
function callMount(...$params) {
if (method_exists($this, 'mount')) $this->mount(...$params);
}
function callHydrate(...$params) {
if (method_exists($this, 'hydrate')) $this->hydrate(...$params);
}
foreach (static::$componentHooks as $hook) {
on('mount', function ($component, $params, $key, $parent) use ($hook) {
$hook = static::initializeHook($hook, $component);
$hook->callBoot();
$hook->callMount($params, $parent);
});
on('hydrate', function ($component, $memo) use ($hook) {
$hook = static::initializeHook($hook, $component);
$hook->callBoot();
($this->listeners[$name] ?? []),
($this->listenersAfter[$name] ?? []),
);
foreach ($listeners as $callback) {
$result = $callback(...$params);
if ($result) {
$middlewares[] = $result;
}
}
function pipe($subject) {
return new Pipe($subject);
}
function trigger($name, ...$params) {
return app(\Livewire\EventBus::class)->trigger($name, ...$params);
}
function on($name, $callback) {
return app(\Livewire\EventBus::class)->on($name, $callback);
}
$this->pushOntoComponentStack($component);
$context = new ComponentContext($component, mounting: true);
if (config('app.debug')) $start = microtime(true);
$finish = trigger('mount', $component, $params, $key, $parent);
if (config('app.debug')) trigger('profile', 'mount', $component->getId(), [$start, microtime(true)]);
if (config('app.debug')) $start = microtime(true);
$html = $this->render($component, '<div></div>');
if (config('app.debug')) trigger('profile', 'render', $component->getId(), [$start, microtime(true)]);
return app(ComponentRegistry::class)->resolveMissingComponent($resolver);
}
function mount($name, $params = [], $key = null)
{
return app(HandleComponents::class)->mount($name, $params, $key);
}
function snapshot($component)
{
return app(HandleComponents::class)->snapshot($component);
$params = is_string($params) ? [] : $params;
try {
InitializeState::$currentMountParameters = array_keys($params);
return parent::mount($name, $params, $key);
} finally {
InitializeState::$currentMountParameters = [];
}
}
return [$name, $params];
};
[$__name, $__params] = $__split("volt-anonymous-fragment-eyJuYW1lIjoiYmxvZy5pbmRleCIsInBhdGgiOiJyZXNvdXJjZXNcL3ZpZXdzXC9wYWdlc1wvYmxvZ1wvaW5kZXguYmxhZGUucGhwIn0=", Livewire\Volt\Precompilers\ExtractFragments::componentArguments([...get_defined_vars(), ...array (
)]));
$__html = app('livewire')->mount($__name, $__params, 'HaIvKmN', $__slots ?? [], get_defined_vars());
echo $__html;
unset($__html);
unset($__name);
$__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());
}
protected function evaluatePath($__path, $__data)
{
if (! ExtendBlade::isRenderingLivewireComponent()) {
return parent::evaluatePath($__path, $__data);
}
$obLevel = ob_get_level();
ob_start();
// 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;
}
use function Livewire\trigger;
class ExtendedCompilerEngine extends \Illuminate\View\Engines\CompilerEngine {
public function get($path, array $data = [])
{
if (! ExtendBlade::isRenderingLivewireComponent()) return parent::get($path, $data);
$currentComponent = ExtendBlade::currentRendering();
trigger('view:compile', $currentComponent, $path);
*
* @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');
}
/**
$response instanceof JsonSerializable ||
$response instanceof stdClass ||
is_array($response))) {
$response = new JsonResponse($response);
} elseif (! $response instanceof SymfonyResponse) {
$response = new Response($response, 200, ['Content-Type' => 'text/html']);
}
if ($response->getStatusCode() === Response::HTTP_NOT_MODIFIED) {
$response->setNotModified();
}
if (! $instance) {
throw new RuntimeException('A facade root has not been set.');
}
return $instance->$method(...$args);
}
}
*/
protected function toResponse(Request $request, MatchedView $matchedView): Response
{
$view = View::file($matchedView->path, $matchedView->data);
return Route::toResponse($request, app()->call(
$matchedView->renderUsing(),
['view' => $view, ...$view->getData()]
) ?? $view);
}
}
($this->onViewMatch)($matchedView);
}
$response = $this->renderUsing
? ($this->renderUsing)($request, $matchedView)
: $this->toResponse($request, $matchedView);
$app = app();
$app->make(FolioManager::class)->terminateUsing(function () use ($middleware, $app, $request, $response) {
$middleware->filter(fn ($m) => is_string($m) && class_exists($m) && method_exists($m, 'terminate'))
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw $exception;
}
return $next($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);
$this->isReading($request) ||
$this->runningUnitTests() ||
$this->inExceptArray($request) ||
$this->tokensMatch($request)
) {
return tap($next($request), function ($response) use ($request) {
if ($this->shouldAddXsrfTokenCookie()) {
$this->addCookieToResponse($request, $response);
}
});
}
// 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);
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($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);
$this->startSession($request, $session)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
if ($this->manager->shouldBlock() ||
($request->route() instanceof Route && $request->route()->locksFor())) {
return $this->handleRequestWhileBlocking($request, $session, $next);
}
return $this->handleStatefulRequest($request, $session, $next);
}
/**
* Handle the given request within session state.
*
// 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);
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($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);
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies 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);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$middleware = collect($this->middleware($mountPath, $matchedView));
return (new Pipeline(app()))
->send($request)
->through($middleware->all())
->then(function (Request $request) use ($matchedView, $middleware) {
if ($this->onViewMatch) {
($this->onViewMatch)($matchedView);
}
$response = $this->renderUsing
return (new RequestHandler(
$mountPaths,
$this->renderUsing,
fn (MatchedView $matchedView) => $this->lastMatchedView = $matchedView,
))($request);
};
}
/**
* Get the middleware that should be applied to the Folio handled URI.
* @param callable $callable
* @return mixed
*/
public function dispatch(Route $route, $callable)
{
return $callable(...array_values($this->resolveParameters($route, $callable)));
}
/**
* Resolve the parameters for the callable.
*
if ($this->isSerializedClosure()) {
$callable = unserialize($this->action['uses'])->getClosure();
}
return $this->container[CallableDispatcher::class]->dispatch($this, $callable);
}
/**
* Determine if the route action is a serialized Closure.
*
try {
if ($this->isControllerAction()) {
return $this->runController();
}
return $this->runCallable();
} catch (HttpResponseException $e) {
return $e->getResponse();
}
}
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(fn ($request) => $this->prepareResponse(
$request, $route->run()
));
}
/**
* Gather the middleware for the given route with resolved class names.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} 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.
*
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(fn ($request) => $this->prepareResponse(
$request, $route->run()
));
}
/**
$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);
}
};
}
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
if ($response instanceof Response && SupportDisablingBackButtonCache::$disableBackButtonCache){
$response->headers->add([
"Pragma" => "no-cache",
"Expires" => "Fri, 01 Jan 1990 00:00:00 GMT",
// 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);
* @param string|null ...$guards
* @return mixed
*/
public function handle($request, Closure $next, ...$guards)
{
$response = $next($request);
if (isset($_ENV['VAPOR_SSM_PATH']) && $response->getStatusCode() === 404) {
$requestUri = $request->getRequestUri();
if (! in_array(ltrim($requestUri, '/'), config('vapor.serve_assets', []))) {
// 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);
* @return \Illuminate\Http\Response
*/
public function handle($request, Closure $next)
{
if (! $this->hasMatchingPath($request)) {
return $next($request);
}
$this->cors->setOptions($this->container['config']->get('cors', []));
if ($this->cors->isPreflightRequest($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);
{
$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);
{
$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);
}
new EnsureOnNakedDomain,
new RedirectStaticAssets,
new EnsureVanityUrlIsNotIndexed,
new EnsureBinaryEncoding(),
])->then(function ($request) use ($kernel) {
return $kernel->handle($request);
});
$kernel->terminate($request, $response);
return $response;
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
* @param callable $next
* @return mixed
*/
public function handle($request, $next)
{
$response = $next($request);
if (static::isBase64EncodingRequired($response)) {
$response->headers->set('X-Vapor-Base64-Encode', 'True');
}
// 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);
* @param callable $next
* @return mixed
*/
public function handle($request, $next)
{
$response = $next($request);
if ('https://'.$request->getHttpHost() === $_ENV['APP_VANITY_URL']) {
$response->headers->set('X-Robots-Tag', 'noindex, nofollow', true);
}
// 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);
return new RedirectResponse($_ENV['ASSET_URL'].'/robots.txt', 302, [
'Cache-Control' => 'public, max-age=3600',
]);
}
return $next($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);
$request->fullUrl()
), 301);
}
}
return $next($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);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through([
new EnsureOnNakedDomain,
new RedirectStaticAssets,
new EnsureVanityUrlIsNotIndexed,
new EnsureBinaryEncoding(),
])->then(function ($request) use ($kernel) {
return $kernel->handle($request);
});
$kernel->terminate($request, $response);
}
$this->app->terminate();
}
} else {
$response = $this->sendRequest($request);
}
return $response;
}
|
*/
$handler = new HttpKernel($app);
$response = $handler->handle(Request::capture());
$response->send();
[3/3]
ViewException
|
---|
Illuminate\View\ViewException: Database file at path [database/database.sqlite] does not exist. Ensure this is an absolute path to the database. (Connection: sqlite, SQL: PRAGMA foreign_keys = ON;) (View: /var/task/resources/views/pages/blog/index.blade.php) at /var/task/vendor/laravel/framework/src/Illuminate/Database/Connection.php:801 at Illuminate\View\Engines\CompilerEngine->handleViewException(object(QueryException), 0) (/var/task/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:60) at Livewire\Mechanisms\ExtendBlade\ExtendedCompilerEngine->handleViewException(object(QueryException), 0) (/var/task/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:60) at Illuminate\View\Engines\PhpEngine->evaluatePath('/tmp/storage/framework/views/dc1d09858cf692e9d422a4ea383bf3e2.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) (/var/task/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22) at Livewire\Mechanisms\ExtendBlade\ExtendedCompilerEngine->evaluatePath('/tmp/storage/framework/views/dc1d09858cf692e9d422a4ea383bf3e2.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) (/var/task/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72) at Illuminate\View\Engines\CompilerEngine->get('/var/task/resources/views/pages/blog/index.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) (/var/task/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:10) at Livewire\Mechanisms\ExtendBlade\ExtendedCompilerEngine->get('/var/task/resources/views/pages/blog/index.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) (/var/task/vendor/laravel/framework/src/Illuminate/View/View.php:195) at Illuminate\View\View->getContents() (/var/task/vendor/laravel/framework/src/Illuminate/View/View.php:178) at Illuminate\View\View->renderContents() (/var/task/vendor/laravel/framework/src/Illuminate/View/View.php:147) at Illuminate\View\View->render() (/var/task/vendor/laravel/framework/src/Illuminate/Http/Response.php:69) at Illuminate\Http\Response->setContent(object(View)) (/var/task/vendor/laravel/framework/src/Illuminate/Http/Response.php:35) at Illuminate\Http\Response->__construct(object(View), 200, array('Content-Type' => 'text/html')) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:911) at Illuminate\Routing\Router::toResponse(object(Request), object(View)) (/var/task/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:353) at Illuminate\Support\Facades\Facade::__callStatic('toResponse', array(object(Request), object(View))) (/var/task/vendor/laravel/folio/src/RequestHandler.php:103) at Laravel\Folio\RequestHandler->toResponse(object(Request), object(MatchedView)) (/var/task/vendor/laravel/folio/src/RequestHandler.php:63) at Laravel\Folio\RequestHandler->Laravel\Folio\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:50) at Illuminate\Routing\Middleware\SubstituteBindings->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:78) at Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49) at Illuminate\View\Middleware\ShareErrorsFromSession->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:121) at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64) at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/task/vendor/laravel/folio/src/RequestHandler.php:56) at Laravel\Folio\RequestHandler->__invoke(object(Request)) (/var/task/vendor/laravel/folio/src/FolioManager.php:93) at Laravel\Folio\FolioManager->Laravel\Folio\{closure}(object(Request), 'blog') (/var/task/vendor/laravel/framework/src/Illuminate/Routing/CallableDispatcher.php:40) at Illuminate\Routing\CallableDispatcher->dispatch(object(Route), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Route.php:237) at Illuminate\Routing\Route->runCallable() (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Route.php:208) at Illuminate\Routing\Route->run() (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:799) at Illuminate\Routing\Router->Illuminate\Routing\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:798) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:777) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:741) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:730) at Illuminate\Routing\Router->dispatch(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:200) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/livewire/livewire/src/Features/SupportDisablingBackButtonCache/DisableBackButtonCacheMiddleware.php:19) at Livewire\Features\SupportDisablingBackButtonCache\DisableBackButtonCacheMiddleware->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Http/Middleware/ServeStaticAssets.php:21) at Laravel\Vapor\Http\Middleware\ServeStaticAssets->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31) at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40) at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27) at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:89) at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php:49) at Illuminate\Http\Middleware\HandleCors->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php:39) at Illuminate\Http\Middleware\TrustProxies->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/HttpKernel.php:173) at Laravel\Vapor\Runtime\HttpKernel->Laravel\Vapor\Runtime\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/Http/Middleware/EnsureBinaryEncoding.php:19) at Laravel\Vapor\Runtime\Http\Middleware\EnsureBinaryEncoding->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/Http/Middleware/EnsureVanityUrlIsNotIndexed.php:16) at Laravel\Vapor\Runtime\Http\Middleware\EnsureVanityUrlIsNotIndexed->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/Http/Middleware/RedirectStaticAssets.php:30) at Laravel\Vapor\Runtime\Http\Middleware\RedirectStaticAssets->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/Http/Middleware/EnsureOnNakedDomain.php:46) at Laravel\Vapor\Runtime\Http\Middleware\EnsureOnNakedDomain->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/task/vendor/laravel/vapor-core/src/Runtime/HttpKernel.php:172) at Laravel\Vapor\Runtime\HttpKernel->sendRequest(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/HttpKernel.php:80) at Laravel\Vapor\Runtime\HttpKernel->handle(object(Request)) (/var/task/httpHandler.php:55) |
[2/3]
QueryException
|
---|
Illuminate\Database\QueryException: Database file at path [database/database.sqlite] does not exist. Ensure this is an absolute path to the database. (Connection: sqlite, SQL: PRAGMA foreign_keys = ON;) at /var/task/vendor/laravel/framework/src/Illuminate/Database/Connection.php:801 at Illuminate\Database\Connection->runQueryCallback('PRAGMA foreign_keys = ON;', array(), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Connection.php:755) at Illuminate\Database\Connection->run('PRAGMA foreign_keys = ON;', array(), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Connection.php:569) at Illuminate\Database\Connection->statement('PRAGMA foreign_keys = ON;') (/var/task/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php:397) at Illuminate\Database\Schema\Builder->enableForeignKeyConstraints() (/var/task/vendor/laravel/framework/src/Illuminate/Database/SQLiteConnection.php:36) at Illuminate\Database\SQLiteConnection->__construct(object(Closure), 'database/database.sqlite', '', array('driver' => 'sqlite', 'database' => 'database/database.sqlite', 'prefix' => '', 'foreign_key_constraints' => true, 'name' => 'sqlite')) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:272) at Illuminate\Database\Connectors\ConnectionFactory->createConnection('sqlite', object(Closure), 'database/database.sqlite', '', array('driver' => 'sqlite', 'database' => 'database/database.sqlite', 'prefix' => '', 'foreign_key_constraints' => true, 'name' => 'sqlite')) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:75) at Illuminate\Database\Connectors\ConnectionFactory->createSingleConnection(array('driver' => 'sqlite', 'database' => 'database/database.sqlite', 'prefix' => '', 'foreign_key_constraints' => true, 'name' => 'sqlite')) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:50) at Illuminate\Database\Connectors\ConnectionFactory->make(array('driver' => 'sqlite', 'database' => 'database/database.sqlite', 'prefix' => '', 'foreign_key_constraints' => true, 'name' => 'sqlite'), 'sqlite') (/var/task/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:152) at Illuminate\Database\DatabaseManager->makeConnection('sqlite') (/var/task/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:101) at Illuminate\Database\DatabaseManager->connection('sqlite') (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1818) at Illuminate\Database\Eloquent\Model::resolveConnection(null) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1784) at Illuminate\Database\Eloquent\Model->getConnection() (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1576) at Illuminate\Database\Eloquent\Model->newBaseQueryBuilder() (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1495) at Illuminate\Database\Eloquent\Model->newModelQuery() (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1531) at Illuminate\Database\Eloquent\Model->newQueryWithoutScopes() (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1484) at Illuminate\Database\Eloquent\Model->newQuery() (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:2333) at Illuminate\Database\Eloquent\Model->__call('count', array()) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:2345) at Illuminate\Database\Eloquent\Model::__callStatic('count', array()) (/var/task/resources/views/pages/blog/index.blade.php:19) at Livewire\Volt\Component@anonymous /tmp/storage/framework/views/c1a0e46e436616c9c83e9345d3b4e6db.php:8$1e4->{closure}() (/var/task/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36) at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() (/var/task/vendor/laravel/framework/src/Illuminate/Container/Util.php:41) at Illuminate\Container\Util::unwrapIfClosure(object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:81) at Illuminate\Container\BoundMethod::callBoundMethod(object(Application), object(Closure), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:35) at Illuminate\Container\BoundMethod::call(object(Application), object(Closure), array(), null) (/var/task/vendor/laravel/framework/src/Illuminate/Container/Container.php:662) at Illuminate\Container\Container->call(object(Closure), array()) (/var/task/vendor/livewire/volt/src/Actions/CallHook.php:28) at Livewire\Volt\Actions\CallHook->execute(object(CompileContext), object(Component@anonymous), array()) (/tmp/storage/framework/views/c1a0e46e436616c9c83e9345d3b4e6db.php:32) at Livewire\Volt\Component@anonymous /tmp/storage/framework/views/c1a0e46e436616c9c83e9345d3b4e6db.php:8$1e4->mount() (/var/task/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36) at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() (/var/task/vendor/laravel/framework/src/Illuminate/Container/Util.php:41) at Illuminate\Container\Util::unwrapIfClosure(object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93) at Illuminate\Container\BoundMethod::callBoundMethod(object(Application), array(object(Component@anonymous), 'mount'), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:35) at Illuminate\Container\BoundMethod::call(object(Application), array(object(Component@anonymous), 'mount'), array()) (/var/task/vendor/livewire/livewire/src/Wrapped.php:23) at Livewire\Wrapped->__call('mount', array()) (/var/task/vendor/livewire/livewire/src/Features/SupportLifecycleHooks/SupportLifecycleHooks.php:125) at Livewire\Features\SupportLifecycleHooks\SupportLifecycleHooks->callHook('mount', array()) (/var/task/vendor/livewire/livewire/src/Features/SupportLifecycleHooks/SupportLifecycleHooks.php:20) at Livewire\Features\SupportLifecycleHooks\SupportLifecycleHooks->mount(array(), false) (/var/task/vendor/livewire/livewire/src/ComponentHook.php:19) at Livewire\ComponentHook->callMount(array(), false) (/var/task/vendor/livewire/livewire/src/ComponentHookRegistry.php:42) at Livewire\ComponentHookRegistry::Livewire\{closure}(object(Component@anonymous), array(), 'HaIvKmN', false) (/var/task/vendor/livewire/livewire/src/EventBus.php:60) at Livewire\EventBus->trigger('mount', object(Component@anonymous), array(), 'HaIvKmN', false) (/var/task/vendor/livewire/livewire/src/helpers.php:100) at Livewire\trigger('mount', object(Component@anonymous), array(), 'HaIvKmN', false) (/var/task/vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php:57) at Livewire\Mechanisms\HandleComponents\HandleComponents->mount('volt-anonymous-fragment-eyJuYW1lIjoiYmxvZy5pbmRleCIsInBhdGgiOiJyZXNvdXJjZXNcL3ZpZXdzXC9wYWdlc1wvYmxvZ1wvaW5kZXguYmxhZGUucGhwIn0=', array(), 'HaIvKmN') (/var/task/vendor/livewire/livewire/src/LivewireManager.php:72) at Livewire\LivewireManager->mount('volt-anonymous-fragment-eyJuYW1lIjoiYmxvZy5pbmRleCIsInBhdGgiOiJyZXNvdXJjZXNcL3ZpZXdzXC9wYWdlc1wvYmxvZ1wvaW5kZXguYmxhZGUucGhwIn0=', array(), 'HaIvKmN') (/var/task/vendor/livewire/volt/src/LivewireManager.php:22) at Livewire\Volt\LivewireManager->mount('volt-anonymous-fragment-eyJuYW1lIjoiYmxvZy5pbmRleCIsInBhdGgiOiJyZXNvdXJjZXNcL3ZpZXdzXC9wYWdlc1wvYmxvZ1wvaW5kZXguYmxhZGUucGhwIn0=', array(), 'HaIvKmN', array(), array('__path' => '/tmp/storage/framework/views/dc1d09858cf692e9d422a4ea383bf3e2.php', '__data' => array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag)), '__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'component' => object(AnonymousComponent), '__split' => object(Closure), '__name' => 'volt-anonymous-fragment-eyJuYW1lIjoiYmxvZy5pbmRleCIsInBhdGgiOiJyZXNvdXJjZXNcL3ZpZXdzXC9wYWdlc1wvYmxvZ1wvaW5kZXguYmxhZGUucGhwIn0=', '__params' => array())) (/tmp/storage/framework/views/dc1d09858cf692e9d422a4ea383bf3e2.php:43) at require('/tmp/storage/framework/views/dc1d09858cf692e9d422a4ea383bf3e2.php') (/var/task/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124) at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}() (/var/task/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:125) at Illuminate\Filesystem\Filesystem->getRequire('/tmp/storage/framework/views/dc1d09858cf692e9d422a4ea383bf3e2.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) (/var/task/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58) at Illuminate\View\Engines\PhpEngine->evaluatePath('/tmp/storage/framework/views/dc1d09858cf692e9d422a4ea383bf3e2.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) (/var/task/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22) at Livewire\Mechanisms\ExtendBlade\ExtendedCompilerEngine->evaluatePath('/tmp/storage/framework/views/dc1d09858cf692e9d422a4ea383bf3e2.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) (/var/task/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72) at Illuminate\View\Engines\CompilerEngine->get('/var/task/resources/views/pages/blog/index.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) (/var/task/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:10) at Livewire\Mechanisms\ExtendBlade\ExtendedCompilerEngine->get('/var/task/resources/views/pages/blog/index.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) (/var/task/vendor/laravel/framework/src/Illuminate/View/View.php:195) at Illuminate\View\View->getContents() (/var/task/vendor/laravel/framework/src/Illuminate/View/View.php:178) at Illuminate\View\View->renderContents() (/var/task/vendor/laravel/framework/src/Illuminate/View/View.php:147) at Illuminate\View\View->render() (/var/task/vendor/laravel/framework/src/Illuminate/Http/Response.php:69) at Illuminate\Http\Response->setContent(object(View)) (/var/task/vendor/laravel/framework/src/Illuminate/Http/Response.php:35) at Illuminate\Http\Response->__construct(object(View), 200, array('Content-Type' => 'text/html')) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:911) at Illuminate\Routing\Router::toResponse(object(Request), object(View)) (/var/task/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:353) at Illuminate\Support\Facades\Facade::__callStatic('toResponse', array(object(Request), object(View))) (/var/task/vendor/laravel/folio/src/RequestHandler.php:103) at Laravel\Folio\RequestHandler->toResponse(object(Request), object(MatchedView)) (/var/task/vendor/laravel/folio/src/RequestHandler.php:63) at Laravel\Folio\RequestHandler->Laravel\Folio\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:50) at Illuminate\Routing\Middleware\SubstituteBindings->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:78) at Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49) at Illuminate\View\Middleware\ShareErrorsFromSession->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:121) at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64) at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/task/vendor/laravel/folio/src/RequestHandler.php:56) at Laravel\Folio\RequestHandler->__invoke(object(Request)) (/var/task/vendor/laravel/folio/src/FolioManager.php:93) at Laravel\Folio\FolioManager->Laravel\Folio\{closure}(object(Request), 'blog') (/var/task/vendor/laravel/framework/src/Illuminate/Routing/CallableDispatcher.php:40) at Illuminate\Routing\CallableDispatcher->dispatch(object(Route), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Route.php:237) at Illuminate\Routing\Route->runCallable() (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Route.php:208) at Illuminate\Routing\Route->run() (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:799) at Illuminate\Routing\Router->Illuminate\Routing\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:798) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:777) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:741) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:730) at Illuminate\Routing\Router->dispatch(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:200) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/livewire/livewire/src/Features/SupportDisablingBackButtonCache/DisableBackButtonCacheMiddleware.php:19) at Livewire\Features\SupportDisablingBackButtonCache\DisableBackButtonCacheMiddleware->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Http/Middleware/ServeStaticAssets.php:21) at Laravel\Vapor\Http\Middleware\ServeStaticAssets->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31) at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40) at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27) at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:89) at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php:49) at Illuminate\Http\Middleware\HandleCors->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php:39) at Illuminate\Http\Middleware\TrustProxies->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/HttpKernel.php:173) at Laravel\Vapor\Runtime\HttpKernel->Laravel\Vapor\Runtime\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/Http/Middleware/EnsureBinaryEncoding.php:19) at Laravel\Vapor\Runtime\Http\Middleware\EnsureBinaryEncoding->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/Http/Middleware/EnsureVanityUrlIsNotIndexed.php:16) at Laravel\Vapor\Runtime\Http\Middleware\EnsureVanityUrlIsNotIndexed->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/Http/Middleware/RedirectStaticAssets.php:30) at Laravel\Vapor\Runtime\Http\Middleware\RedirectStaticAssets->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/Http/Middleware/EnsureOnNakedDomain.php:46) at Laravel\Vapor\Runtime\Http\Middleware\EnsureOnNakedDomain->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/task/vendor/laravel/vapor-core/src/Runtime/HttpKernel.php:172) at Laravel\Vapor\Runtime\HttpKernel->sendRequest(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/HttpKernel.php:80) at Laravel\Vapor\Runtime\HttpKernel->handle(object(Request)) (/var/task/httpHandler.php:55) |
[1/3]
SQLiteDatabaseDoesNotExistException
|
---|
Illuminate\Database\SQLiteDatabaseDoesNotExistException: Database file at path [database/database.sqlite] does not exist. Ensure this is an absolute path to the database. at /var/task/vendor/laravel/framework/src/Illuminate/Database/Connectors/SQLiteConnector.php:34 at Illuminate\Database\Connectors\SQLiteConnector->connect(array('driver' => 'sqlite', 'database' => 'database/database.sqlite', 'prefix' => '', 'foreign_key_constraints' => true, 'name' => 'sqlite')) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:221) at Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() at call_user_func(object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1292) at Illuminate\Database\Connection->getPdo() (/var/task/vendor/laravel/framework/src/Illuminate/Database/Connection.php:574) at Illuminate\Database\Connection->Illuminate\Database\{closure}('PRAGMA foreign_keys = ON;', array()) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Connection.php:788) at Illuminate\Database\Connection->runQueryCallback('PRAGMA foreign_keys = ON;', array(), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Connection.php:755) at Illuminate\Database\Connection->run('PRAGMA foreign_keys = ON;', array(), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Connection.php:569) at Illuminate\Database\Connection->statement('PRAGMA foreign_keys = ON;') (/var/task/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php:397) at Illuminate\Database\Schema\Builder->enableForeignKeyConstraints() (/var/task/vendor/laravel/framework/src/Illuminate/Database/SQLiteConnection.php:36) at Illuminate\Database\SQLiteConnection->__construct(object(Closure), 'database/database.sqlite', '', array('driver' => 'sqlite', 'database' => 'database/database.sqlite', 'prefix' => '', 'foreign_key_constraints' => true, 'name' => 'sqlite')) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:272) at Illuminate\Database\Connectors\ConnectionFactory->createConnection('sqlite', object(Closure), 'database/database.sqlite', '', array('driver' => 'sqlite', 'database' => 'database/database.sqlite', 'prefix' => '', 'foreign_key_constraints' => true, 'name' => 'sqlite')) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:75) at Illuminate\Database\Connectors\ConnectionFactory->createSingleConnection(array('driver' => 'sqlite', 'database' => 'database/database.sqlite', 'prefix' => '', 'foreign_key_constraints' => true, 'name' => 'sqlite')) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:50) at Illuminate\Database\Connectors\ConnectionFactory->make(array('driver' => 'sqlite', 'database' => 'database/database.sqlite', 'prefix' => '', 'foreign_key_constraints' => true, 'name' => 'sqlite'), 'sqlite') (/var/task/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:152) at Illuminate\Database\DatabaseManager->makeConnection('sqlite') (/var/task/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:101) at Illuminate\Database\DatabaseManager->connection('sqlite') (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1818) at Illuminate\Database\Eloquent\Model::resolveConnection(null) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1784) at Illuminate\Database\Eloquent\Model->getConnection() (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1576) at Illuminate\Database\Eloquent\Model->newBaseQueryBuilder() (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1495) at Illuminate\Database\Eloquent\Model->newModelQuery() (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1531) at Illuminate\Database\Eloquent\Model->newQueryWithoutScopes() (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1484) at Illuminate\Database\Eloquent\Model->newQuery() (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:2333) at Illuminate\Database\Eloquent\Model->__call('count', array()) (/var/task/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:2345) at Illuminate\Database\Eloquent\Model::__callStatic('count', array()) (/var/task/resources/views/pages/blog/index.blade.php:19) at Livewire\Volt\Component@anonymous /tmp/storage/framework/views/c1a0e46e436616c9c83e9345d3b4e6db.php:8$1e4->{closure}() (/var/task/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36) at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() (/var/task/vendor/laravel/framework/src/Illuminate/Container/Util.php:41) at Illuminate\Container\Util::unwrapIfClosure(object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:81) at Illuminate\Container\BoundMethod::callBoundMethod(object(Application), object(Closure), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:35) at Illuminate\Container\BoundMethod::call(object(Application), object(Closure), array(), null) (/var/task/vendor/laravel/framework/src/Illuminate/Container/Container.php:662) at Illuminate\Container\Container->call(object(Closure), array()) (/var/task/vendor/livewire/volt/src/Actions/CallHook.php:28) at Livewire\Volt\Actions\CallHook->execute(object(CompileContext), object(Component@anonymous), array()) (/tmp/storage/framework/views/c1a0e46e436616c9c83e9345d3b4e6db.php:32) at Livewire\Volt\Component@anonymous /tmp/storage/framework/views/c1a0e46e436616c9c83e9345d3b4e6db.php:8$1e4->mount() (/var/task/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36) at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() (/var/task/vendor/laravel/framework/src/Illuminate/Container/Util.php:41) at Illuminate\Container\Util::unwrapIfClosure(object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93) at Illuminate\Container\BoundMethod::callBoundMethod(object(Application), array(object(Component@anonymous), 'mount'), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:35) at Illuminate\Container\BoundMethod::call(object(Application), array(object(Component@anonymous), 'mount'), array()) (/var/task/vendor/livewire/livewire/src/Wrapped.php:23) at Livewire\Wrapped->__call('mount', array()) (/var/task/vendor/livewire/livewire/src/Features/SupportLifecycleHooks/SupportLifecycleHooks.php:125) at Livewire\Features\SupportLifecycleHooks\SupportLifecycleHooks->callHook('mount', array()) (/var/task/vendor/livewire/livewire/src/Features/SupportLifecycleHooks/SupportLifecycleHooks.php:20) at Livewire\Features\SupportLifecycleHooks\SupportLifecycleHooks->mount(array(), false) (/var/task/vendor/livewire/livewire/src/ComponentHook.php:19) at Livewire\ComponentHook->callMount(array(), false) (/var/task/vendor/livewire/livewire/src/ComponentHookRegistry.php:42) at Livewire\ComponentHookRegistry::Livewire\{closure}(object(Component@anonymous), array(), 'HaIvKmN', false) (/var/task/vendor/livewire/livewire/src/EventBus.php:60) at Livewire\EventBus->trigger('mount', object(Component@anonymous), array(), 'HaIvKmN', false) (/var/task/vendor/livewire/livewire/src/helpers.php:100) at Livewire\trigger('mount', object(Component@anonymous), array(), 'HaIvKmN', false) (/var/task/vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php:57) at Livewire\Mechanisms\HandleComponents\HandleComponents->mount('volt-anonymous-fragment-eyJuYW1lIjoiYmxvZy5pbmRleCIsInBhdGgiOiJyZXNvdXJjZXNcL3ZpZXdzXC9wYWdlc1wvYmxvZ1wvaW5kZXguYmxhZGUucGhwIn0=', array(), 'HaIvKmN') (/var/task/vendor/livewire/livewire/src/LivewireManager.php:72) at Livewire\LivewireManager->mount('volt-anonymous-fragment-eyJuYW1lIjoiYmxvZy5pbmRleCIsInBhdGgiOiJyZXNvdXJjZXNcL3ZpZXdzXC9wYWdlc1wvYmxvZ1wvaW5kZXguYmxhZGUucGhwIn0=', array(), 'HaIvKmN') (/var/task/vendor/livewire/volt/src/LivewireManager.php:22) at Livewire\Volt\LivewireManager->mount('volt-anonymous-fragment-eyJuYW1lIjoiYmxvZy5pbmRleCIsInBhdGgiOiJyZXNvdXJjZXNcL3ZpZXdzXC9wYWdlc1wvYmxvZ1wvaW5kZXguYmxhZGUucGhwIn0=', array(), 'HaIvKmN', array(), array('__path' => '/tmp/storage/framework/views/dc1d09858cf692e9d422a4ea383bf3e2.php', '__data' => array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag)), '__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'component' => object(AnonymousComponent), '__split' => object(Closure), '__name' => 'volt-anonymous-fragment-eyJuYW1lIjoiYmxvZy5pbmRleCIsInBhdGgiOiJyZXNvdXJjZXNcL3ZpZXdzXC9wYWdlc1wvYmxvZ1wvaW5kZXguYmxhZGUucGhwIn0=', '__params' => array())) (/tmp/storage/framework/views/dc1d09858cf692e9d422a4ea383bf3e2.php:43) at require('/tmp/storage/framework/views/dc1d09858cf692e9d422a4ea383bf3e2.php') (/var/task/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124) at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}() (/var/task/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:125) at Illuminate\Filesystem\Filesystem->getRequire('/tmp/storage/framework/views/dc1d09858cf692e9d422a4ea383bf3e2.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) (/var/task/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58) at Illuminate\View\Engines\PhpEngine->evaluatePath('/tmp/storage/framework/views/dc1d09858cf692e9d422a4ea383bf3e2.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) (/var/task/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22) at Livewire\Mechanisms\ExtendBlade\ExtendedCompilerEngine->evaluatePath('/tmp/storage/framework/views/dc1d09858cf692e9d422a4ea383bf3e2.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) (/var/task/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72) at Illuminate\View\Engines\CompilerEngine->get('/var/task/resources/views/pages/blog/index.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) (/var/task/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:10) at Livewire\Mechanisms\ExtendBlade\ExtendedCompilerEngine->get('/var/task/resources/views/pages/blog/index.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) (/var/task/vendor/laravel/framework/src/Illuminate/View/View.php:195) at Illuminate\View\View->getContents() (/var/task/vendor/laravel/framework/src/Illuminate/View/View.php:178) at Illuminate\View\View->renderContents() (/var/task/vendor/laravel/framework/src/Illuminate/View/View.php:147) at Illuminate\View\View->render() (/var/task/vendor/laravel/framework/src/Illuminate/Http/Response.php:69) at Illuminate\Http\Response->setContent(object(View)) (/var/task/vendor/laravel/framework/src/Illuminate/Http/Response.php:35) at Illuminate\Http\Response->__construct(object(View), 200, array('Content-Type' => 'text/html')) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:911) at Illuminate\Routing\Router::toResponse(object(Request), object(View)) (/var/task/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:353) at Illuminate\Support\Facades\Facade::__callStatic('toResponse', array(object(Request), object(View))) (/var/task/vendor/laravel/folio/src/RequestHandler.php:103) at Laravel\Folio\RequestHandler->toResponse(object(Request), object(MatchedView)) (/var/task/vendor/laravel/folio/src/RequestHandler.php:63) at Laravel\Folio\RequestHandler->Laravel\Folio\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:50) at Illuminate\Routing\Middleware\SubstituteBindings->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:78) at Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49) at Illuminate\View\Middleware\ShareErrorsFromSession->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:121) at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64) at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/task/vendor/laravel/folio/src/RequestHandler.php:56) at Laravel\Folio\RequestHandler->__invoke(object(Request)) (/var/task/vendor/laravel/folio/src/FolioManager.php:93) at Laravel\Folio\FolioManager->Laravel\Folio\{closure}(object(Request), 'blog') (/var/task/vendor/laravel/framework/src/Illuminate/Routing/CallableDispatcher.php:40) at Illuminate\Routing\CallableDispatcher->dispatch(object(Route), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Route.php:237) at Illuminate\Routing\Route->runCallable() (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Route.php:208) at Illuminate\Routing\Route->run() (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:799) at Illuminate\Routing\Router->Illuminate\Routing\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:798) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:777) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:741) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Routing/Router.php:730) at Illuminate\Routing\Router->dispatch(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:200) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/livewire/livewire/src/Features/SupportDisablingBackButtonCache/DisableBackButtonCacheMiddleware.php:19) at Livewire\Features\SupportDisablingBackButtonCache\DisableBackButtonCacheMiddleware->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Http/Middleware/ServeStaticAssets.php:21) at Laravel\Vapor\Http\Middleware\ServeStaticAssets->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31) at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40) at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27) at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:89) at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php:49) at Illuminate\Http\Middleware\HandleCors->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php:39) at Illuminate\Http\Middleware\TrustProxies->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/HttpKernel.php:173) at Laravel\Vapor\Runtime\HttpKernel->Laravel\Vapor\Runtime\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/Http/Middleware/EnsureBinaryEncoding.php:19) at Laravel\Vapor\Runtime\Http\Middleware\EnsureBinaryEncoding->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/Http/Middleware/EnsureVanityUrlIsNotIndexed.php:16) at Laravel\Vapor\Runtime\Http\Middleware\EnsureVanityUrlIsNotIndexed->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/Http/Middleware/RedirectStaticAssets.php:30) at Laravel\Vapor\Runtime\Http\Middleware\RedirectStaticAssets->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/Http/Middleware/EnsureOnNakedDomain.php:46) at Laravel\Vapor\Runtime\Http\Middleware\EnsureOnNakedDomain->handle(object(Request), object(Closure)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/task/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/task/vendor/laravel/vapor-core/src/Runtime/HttpKernel.php:172) at Laravel\Vapor\Runtime\HttpKernel->sendRequest(object(Request)) (/var/task/vendor/laravel/vapor-core/src/Runtime/HttpKernel.php:80) at Laravel\Vapor\Runtime\HttpKernel->handle(object(Request)) (/var/task/httpHandler.php:55) |