Symfony Exception

InvalidArgumentException ViewException

HTTP 500 Internal Server Error

View [layouts.app] not found. (View: /app/modules/nuc_pages/views/errors/404.blade.php)

Exceptions 2

Illuminate\View\ ViewException

Show exception properties
Illuminate\View\ViewException {#572
  #severity: E_ERROR
}
  1. return $viewPath;
  2. }
  3. }
  4. }
  5. throw new InvalidArgumentException("View [{$name}] not found.");
  6. }
  7. /**
  8. * Get an array of possible view files.
  9. *
  1. // flush out any stray output that might get out before an error occurs or
  2. // an exception is thrown. This prevents any partial views from leaking.
  3. try {
  4. $this->files->getRequire($path, $data);
  5. } catch (Throwable $e) {
  6. $this->handleViewException($e, $obLevel);
  7. }
  8. return ltrim(ob_get_clean());
  9. }
  1. // Once we have the path to the compiled file, we will evaluate the paths with
  2. // typical PHP just like any other templates. We also keep a stack of views
  3. // which have been rendered for right exception messages to be generated.
  4. try {
  5. $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6. } catch (ViewException $e) {
  7. if (! str($e->getMessage())->contains(['No such file or directory', 'File does not exist at path'])) {
  8. throw $e;
  9. }
  1. *
  2. * @return string
  3. */
  4. protected function getContents()
  5. {
  6. return $this->engine->get($this->path, $this->gatherData());
  7. }
  8. /**
  9. * Get the data bound to the view instance.
  10. *
  1. // clear out the sections for any separate views that may be rendered.
  2. $this->factory->incrementRender();
  3. $this->factory->callComposer($this);
  4. $contents = $this->getContents();
  5. // Once we've finished rendering the view, we'll decrement the render count
  6. // so that each section gets flushed out next time a view is created and
  7. // no old sections are staying around in the memory of an environment.
  8. $this->factory->decrementRender();
  1. * @throws \Throwable
  2. */
  3. public function render(?callable $callback = null)
  4. {
  5. try {
  6. $contents = $this->renderContents();
  7. $response = isset($callback) ? $callback($this, $contents) : null;
  8. // Once we have the contents of the view, we will flush the sections if we are
  9. // done rendering all views so that there is nothing left hanging over when
  1. // If this content implements the "Renderable" interface then we will call the
  2. // render method on the object so we will avoid any "__toString" exceptions
  3. // that might be thrown and have their errors obscured by PHP's handling.
  4. elseif ($content instanceof Renderable) {
  5. $content = $content->render();
  6. }
  7. parent::setContent($content);
  8. return $this;
  1. */
  2. public function __construct($content = '', $status = 200, array $headers = [])
  3. {
  4. $this->headers = new ResponseHeaderBag($headers);
  5. $this->setContent($content);
  6. $this->setStatusCode($status);
  7. $this->setProtocolVersion('1.0');
  8. }
  9. /**
  1. * @param array $headers
  2. * @return \Illuminate\Http\Response
  3. */
  4. public function make($content = '', $status = 200, array $headers = [])
  5. {
  6. return new Response($content, $status, $headers);
  7. }
  8. /**
  9. * Create a new "no content" response.
  10. *
  1. {
  2. if (is_array($view)) {
  3. return $this->make($this->view->first($view, $data), $status, $headers);
  4. }
  5. return $this->make($this->view->make($view, $data), $status, $headers);
  6. }
  7. /**
  8. * Create a new JSON response instance.
  9. *
  1. {
  2. $this->registerErrorViewPaths();
  3. if ($view = $this->getHttpExceptionView($e)) {
  4. try {
  5. return response()->view($view, [
  6. 'errors' => new ViewErrorBag,
  7. 'exception' => $e,
  8. ], $e->getStatusCode(), $e->getHeaders());
  9. } catch (Throwable $t) {
  10. config('app.debug') && throw $t;
  1. if (! $this->isHttpException($e)) {
  2. $e = new HttpException(500, $e->getMessage(), $e);
  3. }
  4. return $this->toIlluminateResponse(
  5. $this->renderHttpException($e), $e
  6. )->prepare($request);
  7. }
  8. /**
  9. * Create a Symfony response for the given exception.
  1. */
  2. protected function renderExceptionResponse($request, Throwable $e)
  3. {
  4. return $this->shouldReturnJson($request, $e)
  5. ? $this->prepareJsonResponse($request, $e)
  6. : $this->prepareResponse($request, $e);
  7. }
  8. /**
  9. * Convert an authentication exception into a response.
  10. *
  1. return $this->finalizeRenderedResponse($request, match (true) {
  2. $e instanceof HttpResponseException => $e->getResponse(),
  3. $e instanceof AuthenticationException => $this->unauthenticated($request, $e),
  4. $e instanceof ValidationException => $this->convertValidationExceptionToResponse($e, $request),
  5. default => $this->renderExceptionResponse($request, $e),
  6. }, $e);
  7. }
  8. /**
  9. * Prepare the final, rendered response to be returned to the browser.
  1. $handler = $this->container->make(ExceptionHandler::class);
  2. $handler->report($e);
  3. $response = $handler->render($passable, $e);
  4. if (is_object($response) && method_exists($response, 'withException')) {
  5. $response->withException($e);
  6. }
  1. {
  2. return function ($passable) use ($destination) {
  3. try {
  4. return $destination($passable);
  5. } catch (Throwable $e) {
  6. return $this->handleException($passable, $e);
  7. }
  8. };
  9. }
  10. /**
in /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php -> {closure:Illuminate\Pipeline\Pipeline::prepareDestination():142} (line 21)
  1. */
  2. public function handle($request, Closure $next)
  3. {
  4. $this->clean($request);
  5. return $next($request);
  6. }
  7. /**
  8. * Clean the request's data.
  9. *
  1. if ($callback($request)) {
  2. return $next($request);
  3. }
  4. }
  5. return parent::handle($request, $next);
  6. }
  7. /**
  8. * Transform the given value.
  9. *
  1. // since the object we're given was already a fully instantiated object.
  2. $parameters = [$passable, $stack];
  3. }
  4. $carry = method_exists($pipe, $this->method)
  5. ? $pipe->{$this->method}(...$parameters)
  6. : $pipe(...$parameters);
  7. return $this->handleCarry($carry);
  8. } catch (Throwable $e) {
  9. return $this->handleException($passable, $e);
in /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php -> {closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159} (line 21)
  1. */
  2. public function handle($request, Closure $next)
  3. {
  4. $this->clean($request);
  5. return $next($request);
  6. }
  7. /**
  8. * Clean the request's data.
  9. *
  1. if ($callback($request)) {
  2. return $next($request);
  3. }
  4. }
  5. return parent::handle($request, $next);
  6. }
  7. /**
  8. * Transform the given value.
  9. *
  1. // since the object we're given was already a fully instantiated object.
  2. $parameters = [$passable, $stack];
  3. }
  4. $carry = method_exists($pipe, $this->method)
  5. ? $pipe->{$this->method}(...$parameters)
  6. : $pipe(...$parameters);
  7. return $this->handleCarry($carry);
  8. } catch (Throwable $e) {
  9. return $this->handleException($passable, $e);
in /app/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php -> {closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159} (line 27)
  1. if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
  2. throw new PostTooLargeException;
  3. }
  4. return $next($request);
  5. }
  6. /**
  7. * Determine the server 'post_max_size' as bytes.
  8. *
  1. // since the object we're given was already a fully instantiated object.
  2. $parameters = [$passable, $stack];
  3. }
  4. $carry = method_exists($pipe, $this->method)
  5. ? $pipe->{$this->method}(...$parameters)
  6. : $pipe(...$parameters);
  7. return $this->handleCarry($carry);
  8. } catch (Throwable $e) {
  9. return $this->handleException($passable, $e);
in /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php -> {closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159} (line 110)
  1. null,
  2. $this->getHeaders($data)
  3. );
  4. }
  5. return $next($request);
  6. }
  7. /**
  8. * Determine if the incoming request has a maintenance mode bypass cookie.
  9. *
  1. // since the object we're given was already a fully instantiated object.
  2. $parameters = [$passable, $stack];
  3. }
  4. $carry = method_exists($pipe, $this->method)
  5. ? $pipe->{$this->method}(...$parameters)
  6. : $pipe(...$parameters);
  7. return $this->handleCarry($carry);
  8. } catch (Throwable $e) {
  9. return $this->handleException($passable, $e);
in /app/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php -> {closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159} (line 62)
  1. $this->cors->varyHeader($response, 'Access-Control-Request-Method');
  2. return $response;
  3. }
  4. $response = $next($request);
  5. if ($request->getMethod() === 'OPTIONS') {
  6. $this->cors->varyHeader($response, 'Access-Control-Request-Method');
  7. }
  1. // since the object we're given was already a fully instantiated object.
  2. $parameters = [$passable, $stack];
  3. }
  4. $carry = method_exists($pipe, $this->method)
  5. ? $pipe->{$this->method}(...$parameters)
  6. : $pipe(...$parameters);
  7. return $this->handleCarry($carry);
  8. } catch (Throwable $e) {
  9. return $this->handleException($passable, $e);
in /app/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php -> {closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159} (line 57)
  1. {
  2. $request::setTrustedProxies([], $this->getTrustedHeaderNames());
  3. $this->setTrustedProxyIpAddresses($request);
  4. return $next($request);
  5. }
  6. /**
  7. * Sets the trusted proxies on the request.
  8. *
  1. // since the object we're given was already a fully instantiated object.
  2. $parameters = [$passable, $stack];
  3. }
  4. $carry = method_exists($pipe, $this->method)
  5. ? $pipe->{$this->method}(...$parameters)
  6. : $pipe(...$parameters);
  7. return $this->handleCarry($carry);
  8. } catch (Throwable $e) {
  9. return $this->handleException($passable, $e);
in /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> {closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159} (line 119)
  1. {
  2. $pipeline = array_reduce(
  3. array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
  4. );
  5. return $pipeline($this->passable);
  6. }
  7. /**
  8. * Run the pipeline and return the result.
  9. *
  1. $this->bootstrap();
  2. return (new Pipeline($this->app))
  3. ->send($request)
  4. ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  5. ->then($this->dispatchToRouter());
  6. }
  7. /**
  8. * Bootstrap the application for HTTP requests.
  9. *
  1. $this->requestStartedAt = Carbon::now();
  2. try {
  3. $request->enableHttpMethodParameterOverride();
  4. $response = $this->sendRequestThroughRouter($request);
  5. } catch (Throwable $e) {
  6. $this->reportException($e);
  7. $response = $this->renderException($request, $e);
  8. }
Kernel->handle() in /app/public/index.php (line 51)
  1. $app = require_once __DIR__ . '/../bootstrap/app.php';
  2. $kernel = $app->make(Kernel::class);
  3. $response = $kernel->handle(
  4. $request = Request::capture()
  5. )->send();
  6. $kernel->terminate($request, $response);

InvalidArgumentException

View [layouts.app] not found.

  1. return $viewPath;
  2. }
  3. }
  4. }
  5. throw new InvalidArgumentException("View [{$name}] not found.");
  6. }
  7. /**
  8. * Get an array of possible view files.
  9. *
  1. if ($this->hasHintInformation($name = trim($name))) {
  2. return $this->views[$name] = $this->findNamespacedView($name);
  3. }
  4. return $this->views[$name] = $this->findInPaths($name, $this->paths);
  5. }
  6. /**
  7. * Get the path to a template with a named path.
  8. *
  1. * @param array $mergeData
  2. * @return \Illuminate\Contracts\View\View
  3. */
  4. public function make($view, $data = [], $mergeData = [])
  5. {
  6. $path = $this->finder->find(
  7. $view = $this->normalizeName($view)
  8. );
  9. // Next, we will create the view instance and call the view creator for the view
  10. // which can set any data, etc. Then we will return the view instance back to
  1. <nuc-error-404-page></nuc-error-404-page>
  2. <ad-section-footer></ad-section-footer>
  3. </div>
  4. <?php $__env->stopSection(); ?>
  5. <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /app/modules/nuc_pages/views/errors/404.blade.php ENDPATH**/ ?>
  1. $__data = $data;
  2. return (static function () use ($__path, $__data) {
  3. extract($__data, EXTR_SKIP);
  4. return require $__path;
  5. })();
  6. }
  7. throw new FileNotFoundException("File does not exist at path {$path}.");
  8. }
in /app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php :: {closure:Illuminate\Filesystem\Filesystem::getRequire():120} (line 124)
  1. return (static function () use ($__path, $__data) {
  2. extract($__data, EXTR_SKIP);
  3. return require $__path;
  4. })();
  5. }
  6. throw new FileNotFoundException("File does not exist at path {$path}.");
  7. }
  1. // We'll evaluate the contents of the view inside a try/catch block so we can
  2. // flush out any stray output that might get out before an error occurs or
  3. // an exception is thrown. This prevents any partial views from leaking.
  4. try {
  5. $this->files->getRequire($path, $data);
  6. } catch (Throwable $e) {
  7. $this->handleViewException($e, $obLevel);
  8. }
  9. return ltrim(ob_get_clean());
  1. // Once we have the path to the compiled file, we will evaluate the paths with
  2. // typical PHP just like any other templates. We also keep a stack of views
  3. // which have been rendered for right exception messages to be generated.
  4. try {
  5. $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6. } catch (ViewException $e) {
  7. if (! str($e->getMessage())->contains(['No such file or directory', 'File does not exist at path'])) {
  8. throw $e;
  9. }
  1. *
  2. * @return string
  3. */
  4. protected function getContents()
  5. {
  6. return $this->engine->get($this->path, $this->gatherData());
  7. }
  8. /**
  9. * Get the data bound to the view instance.
  10. *
  1. // clear out the sections for any separate views that may be rendered.
  2. $this->factory->incrementRender();
  3. $this->factory->callComposer($this);
  4. $contents = $this->getContents();
  5. // Once we've finished rendering the view, we'll decrement the render count
  6. // so that each section gets flushed out next time a view is created and
  7. // no old sections are staying around in the memory of an environment.
  8. $this->factory->decrementRender();
  1. * @throws \Throwable
  2. */
  3. public function render(?callable $callback = null)
  4. {
  5. try {
  6. $contents = $this->renderContents();
  7. $response = isset($callback) ? $callback($this, $contents) : null;
  8. // Once we have the contents of the view, we will flush the sections if we are
  9. // done rendering all views so that there is nothing left hanging over when
  1. // If this content implements the "Renderable" interface then we will call the
  2. // render method on the object so we will avoid any "__toString" exceptions
  3. // that might be thrown and have their errors obscured by PHP's handling.
  4. elseif ($content instanceof Renderable) {
  5. $content = $content->render();
  6. }
  7. parent::setContent($content);
  8. return $this;
  1. */
  2. public function __construct($content = '', $status = 200, array $headers = [])
  3. {
  4. $this->headers = new ResponseHeaderBag($headers);
  5. $this->setContent($content);
  6. $this->setStatusCode($status);
  7. $this->setProtocolVersion('1.0');
  8. }
  9. /**
  1. * @param array $headers
  2. * @return \Illuminate\Http\Response
  3. */
  4. public function make($content = '', $status = 200, array $headers = [])
  5. {
  6. return new Response($content, $status, $headers);
  7. }
  8. /**
  9. * Create a new "no content" response.
  10. *
  1. {
  2. if (is_array($view)) {
  3. return $this->make($this->view->first($view, $data), $status, $headers);
  4. }
  5. return $this->make($this->view->make($view, $data), $status, $headers);
  6. }
  7. /**
  8. * Create a new JSON response instance.
  9. *
  1. {
  2. $this->registerErrorViewPaths();
  3. if ($view = $this->getHttpExceptionView($e)) {
  4. try {
  5. return response()->view($view, [
  6. 'errors' => new ViewErrorBag,
  7. 'exception' => $e,
  8. ], $e->getStatusCode(), $e->getHeaders());
  9. } catch (Throwable $t) {
  10. config('app.debug') && throw $t;
  1. if (! $this->isHttpException($e)) {
  2. $e = new HttpException(500, $e->getMessage(), $e);
  3. }
  4. return $this->toIlluminateResponse(
  5. $this->renderHttpException($e), $e
  6. )->prepare($request);
  7. }
  8. /**
  9. * Create a Symfony response for the given exception.
  1. */
  2. protected function renderExceptionResponse($request, Throwable $e)
  3. {
  4. return $this->shouldReturnJson($request, $e)
  5. ? $this->prepareJsonResponse($request, $e)
  6. : $this->prepareResponse($request, $e);
  7. }
  8. /**
  9. * Convert an authentication exception into a response.
  10. *
  1. return $this->finalizeRenderedResponse($request, match (true) {
  2. $e instanceof HttpResponseException => $e->getResponse(),
  3. $e instanceof AuthenticationException => $this->unauthenticated($request, $e),
  4. $e instanceof ValidationException => $this->convertValidationExceptionToResponse($e, $request),
  5. default => $this->renderExceptionResponse($request, $e),
  6. }, $e);
  7. }
  8. /**
  9. * Prepare the final, rendered response to be returned to the browser.
  1. $handler = $this->container->make(ExceptionHandler::class);
  2. $handler->report($e);
  3. $response = $handler->render($passable, $e);
  4. if (is_object($response) && method_exists($response, 'withException')) {
  5. $response->withException($e);
  6. }
  1. {
  2. return function ($passable) use ($destination) {
  3. try {
  4. return $destination($passable);
  5. } catch (Throwable $e) {
  6. return $this->handleException($passable, $e);
  7. }
  8. };
  9. }
  10. /**
in /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php -> {closure:Illuminate\Pipeline\Pipeline::prepareDestination():142} (line 21)
  1. */
  2. public function handle($request, Closure $next)
  3. {
  4. $this->clean($request);
  5. return $next($request);
  6. }
  7. /**
  8. * Clean the request's data.
  9. *
  1. if ($callback($request)) {
  2. return $next($request);
  3. }
  4. }
  5. return parent::handle($request, $next);
  6. }
  7. /**
  8. * Transform the given value.
  9. *
  1. // since the object we're given was already a fully instantiated object.
  2. $parameters = [$passable, $stack];
  3. }
  4. $carry = method_exists($pipe, $this->method)
  5. ? $pipe->{$this->method}(...$parameters)
  6. : $pipe(...$parameters);
  7. return $this->handleCarry($carry);
  8. } catch (Throwable $e) {
  9. return $this->handleException($passable, $e);
in /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php -> {closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159} (line 21)
  1. */
  2. public function handle($request, Closure $next)
  3. {
  4. $this->clean($request);
  5. return $next($request);
  6. }
  7. /**
  8. * Clean the request's data.
  9. *
  1. if ($callback($request)) {
  2. return $next($request);
  3. }
  4. }
  5. return parent::handle($request, $next);
  6. }
  7. /**
  8. * Transform the given value.
  9. *
  1. // since the object we're given was already a fully instantiated object.
  2. $parameters = [$passable, $stack];
  3. }
  4. $carry = method_exists($pipe, $this->method)
  5. ? $pipe->{$this->method}(...$parameters)
  6. : $pipe(...$parameters);
  7. return $this->handleCarry($carry);
  8. } catch (Throwable $e) {
  9. return $this->handleException($passable, $e);
in /app/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php -> {closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159} (line 27)
  1. if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
  2. throw new PostTooLargeException;
  3. }
  4. return $next($request);
  5. }
  6. /**
  7. * Determine the server 'post_max_size' as bytes.
  8. *
  1. // since the object we're given was already a fully instantiated object.
  2. $parameters = [$passable, $stack];
  3. }
  4. $carry = method_exists($pipe, $this->method)
  5. ? $pipe->{$this->method}(...$parameters)
  6. : $pipe(...$parameters);
  7. return $this->handleCarry($carry);
  8. } catch (Throwable $e) {
  9. return $this->handleException($passable, $e);
in /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php -> {closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159} (line 110)
  1. null,
  2. $this->getHeaders($data)
  3. );
  4. }
  5. return $next($request);
  6. }
  7. /**
  8. * Determine if the incoming request has a maintenance mode bypass cookie.
  9. *
  1. // since the object we're given was already a fully instantiated object.
  2. $parameters = [$passable, $stack];
  3. }
  4. $carry = method_exists($pipe, $this->method)
  5. ? $pipe->{$this->method}(...$parameters)
  6. : $pipe(...$parameters);
  7. return $this->handleCarry($carry);
  8. } catch (Throwable $e) {
  9. return $this->handleException($passable, $e);
in /app/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php -> {closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159} (line 62)
  1. $this->cors->varyHeader($response, 'Access-Control-Request-Method');
  2. return $response;
  3. }
  4. $response = $next($request);
  5. if ($request->getMethod() === 'OPTIONS') {
  6. $this->cors->varyHeader($response, 'Access-Control-Request-Method');
  7. }
  1. // since the object we're given was already a fully instantiated object.
  2. $parameters = [$passable, $stack];
  3. }
  4. $carry = method_exists($pipe, $this->method)
  5. ? $pipe->{$this->method}(...$parameters)
  6. : $pipe(...$parameters);
  7. return $this->handleCarry($carry);
  8. } catch (Throwable $e) {
  9. return $this->handleException($passable, $e);
in /app/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php -> {closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159} (line 57)
  1. {
  2. $request::setTrustedProxies([], $this->getTrustedHeaderNames());
  3. $this->setTrustedProxyIpAddresses($request);
  4. return $next($request);
  5. }
  6. /**
  7. * Sets the trusted proxies on the request.
  8. *
  1. // since the object we're given was already a fully instantiated object.
  2. $parameters = [$passable, $stack];
  3. }
  4. $carry = method_exists($pipe, $this->method)
  5. ? $pipe->{$this->method}(...$parameters)
  6. : $pipe(...$parameters);
  7. return $this->handleCarry($carry);
  8. } catch (Throwable $e) {
  9. return $this->handleException($passable, $e);
in /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> {closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159} (line 119)
  1. {
  2. $pipeline = array_reduce(
  3. array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
  4. );
  5. return $pipeline($this->passable);
  6. }
  7. /**
  8. * Run the pipeline and return the result.
  9. *
  1. $this->bootstrap();
  2. return (new Pipeline($this->app))
  3. ->send($request)
  4. ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  5. ->then($this->dispatchToRouter());
  6. }
  7. /**
  8. * Bootstrap the application for HTTP requests.
  9. *
  1. $this->requestStartedAt = Carbon::now();
  2. try {
  3. $request->enableHttpMethodParameterOverride();
  4. $response = $this->sendRequestThroughRouter($request);
  5. } catch (Throwable $e) {
  6. $this->reportException($e);
  7. $response = $this->renderException($request, $e);
  8. }
Kernel->handle() in /app/public/index.php (line 51)
  1. $app = require_once __DIR__ . '/../bootstrap/app.php';
  2. $kernel = $app->make(Kernel::class);
  3. $response = $kernel->handle(
  4. $request = Request::capture()
  5. )->send();
  6. $kernel->terminate($request, $response);

Stack Traces 2

[2/2] ViewException
Illuminate\View\ViewException:
View [layouts.app] not found. (View: /app/modules/nuc_pages/views/errors/404.blade.php)

  at /app/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:139
  at Illuminate\View\Engines\CompilerEngine->handleViewException()
     (/app/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:60)
  at Illuminate\View\Engines\PhpEngine->evaluatePath()
     (/app/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:73)
  at Illuminate\View\Engines\CompilerEngine->get()
     (/app/vendor/laravel/framework/src/Illuminate/View/View.php:208)
  at Illuminate\View\View->getContents()
     (/app/vendor/laravel/framework/src/Illuminate/View/View.php:191)
  at Illuminate\View\View->renderContents()
     (/app/vendor/laravel/framework/src/Illuminate/View/View.php:160)
  at Illuminate\View\View->render()
     (/app/vendor/laravel/framework/src/Illuminate/Http/Response.php:70)
  at Illuminate\Http\Response->setContent()
     (/app/vendor/laravel/framework/src/Illuminate/Http/Response.php:35)
  at Illuminate\Http\Response->__construct()
     (/app/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:58)
  at Illuminate\Routing\ResponseFactory->make()
     (/app/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:88)
  at Illuminate\Routing\ResponseFactory->view()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:879)
  at Illuminate\Foundation\Exceptions\Handler->renderHttpException()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:806)
  at Illuminate\Foundation\Exceptions\Handler->prepareResponse()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:697)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:586)
  at Illuminate\Foundation\Exceptions\Handler->render()
     (/app/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:51)
  at Illuminate\Routing\Pipeline->handleException()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:146)
  at Illuminate\Pipeline\Pipeline->{closure:Illuminate\Pipeline\Pipeline::prepareDestination():142}()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
  at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->{closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159}()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:51)
  at Illuminate\Foundation\Http\Middleware\TrimStrings->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->{closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159}()
     (/app/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php:27)
  at Illuminate\Http\Middleware\ValidatePostSize->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->{closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159}()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:110)
  at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->{closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159}()
     (/app/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php:62)
  at Illuminate\Http\Middleware\HandleCors->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->{closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159}()
     (/app/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php:57)
  at Illuminate\Http\Middleware\TrustProxies->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->{closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159}()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:119)
  at Illuminate\Pipeline\Pipeline->then()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/app/public/index.php:51)                
[1/2] InvalidArgumentException
InvalidArgumentException:
View [layouts.app] not found.

  at /app/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:139
  at Illuminate\View\FileViewFinder->findInPaths()
     (/app/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:79)
  at Illuminate\View\FileViewFinder->find()
     (/app/vendor/laravel/framework/src/Illuminate/View/Factory.php:151)
  at Illuminate\View\Factory->make()
     (/app/storage/framework/views/2168c0ee08dca86bcfa96852dcbd4534.php:9)
  at require('/app/storage/framework/views/2168c0ee08dca86bcfa96852dcbd4534.php')
     (/app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:123)
  at Illuminate\Filesystem\Filesystem::{closure:Illuminate\Filesystem\Filesystem::getRequire():120}()
     (/app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124)
  at Illuminate\Filesystem\Filesystem->getRequire()
     (/app/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58)
  at Illuminate\View\Engines\PhpEngine->evaluatePath()
     (/app/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:73)
  at Illuminate\View\Engines\CompilerEngine->get()
     (/app/vendor/laravel/framework/src/Illuminate/View/View.php:208)
  at Illuminate\View\View->getContents()
     (/app/vendor/laravel/framework/src/Illuminate/View/View.php:191)
  at Illuminate\View\View->renderContents()
     (/app/vendor/laravel/framework/src/Illuminate/View/View.php:160)
  at Illuminate\View\View->render()
     (/app/vendor/laravel/framework/src/Illuminate/Http/Response.php:70)
  at Illuminate\Http\Response->setContent()
     (/app/vendor/laravel/framework/src/Illuminate/Http/Response.php:35)
  at Illuminate\Http\Response->__construct()
     (/app/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:58)
  at Illuminate\Routing\ResponseFactory->make()
     (/app/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:88)
  at Illuminate\Routing\ResponseFactory->view()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:879)
  at Illuminate\Foundation\Exceptions\Handler->renderHttpException()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:806)
  at Illuminate\Foundation\Exceptions\Handler->prepareResponse()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:697)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:586)
  at Illuminate\Foundation\Exceptions\Handler->render()
     (/app/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:51)
  at Illuminate\Routing\Pipeline->handleException()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:146)
  at Illuminate\Pipeline\Pipeline->{closure:Illuminate\Pipeline\Pipeline::prepareDestination():142}()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
  at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->{closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159}()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:51)
  at Illuminate\Foundation\Http\Middleware\TrimStrings->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->{closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159}()
     (/app/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php:27)
  at Illuminate\Http\Middleware\ValidatePostSize->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->{closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159}()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:110)
  at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->{closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159}()
     (/app/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php:62)
  at Illuminate\Http\Middleware\HandleCors->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->{closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159}()
     (/app/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php:57)
  at Illuminate\Http\Middleware\TrustProxies->handle()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->{closure:{closure:Illuminate\Pipeline\Pipeline::carry():158}:159}()
     (/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:119)
  at Illuminate\Pipeline\Pipeline->then()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/app/public/index.php:51)