}
// 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.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
// 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 sections get 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;
// 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);
// 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);
// 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);
// 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)
{
// Check if we're dealing with CORS and if we should handle it
if (! $this->shouldRun($request)) {
return $next($request);
}
// For Preflight, return the Preflight response
if ($this->cors->isPreflightRequest($request)) {
return $this->cors->handlePreflightRequest($request);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
public function handle(Request $request, Closure $next)
{
$request::setTrustedProxies([], $this->getTrustedHeaderNames()); // Reset trusted proxies between requests
$this->setTrustedProxyIpAddresses($request);
return $next($request);
}
/**
* Sets the trusted proxies on the request to the value of trustedproxy.proxies
*
// 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\Contracts\View\View
*/
public function make($view, $data = [], $mergeData = [])
{
$path = $this->finder->find(
$view = $this->normalizeName($view)
);
// Next, we will create the view instance and call the view creator for the view
// which can set any data, etc. Then we will return the view instance back to
// the caller for rendering or performing other view manipulations on this.
// 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 {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
// 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 sections get 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;
// 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);
// 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);
// 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);
// 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)
{
// Check if we're dealing with CORS and if we should handle it
if (! $this->shouldRun($request)) {
return $next($request);
}
// For Preflight, return the Preflight response
if ($this->cors->isPreflightRequest($request)) {
return $this->cors->handlePreflightRequest($request);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
public function handle(Request $request, Closure $next)
{
$request::setTrustedProxies([], $this->getTrustedHeaderNames()); // Reset trusted proxies between requests
$this->setTrustedProxyIpAddresses($request);
return $next($request);
}
/**
* Sets the trusted proxies on the request to the value of trustedproxy.proxies
*
// 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);
[2/2] ErrorException |
---|
ErrorException: View [app] not found. (View: /home/boozkie/public_html/resources/views/errors/404.blade.php) at /home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:137 at Illuminate\View\Engines\CompilerEngine->handleViewException(object(InvalidArgumentException), 0) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:43) at Illuminate\View\Engines\PhpEngine->evaluatePath('/home/boozkie/public_html/storage/framework/views/5bb644c99130233d016fc0ff20337e07f0ab923a.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException))) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:57) at Illuminate\View\Engines\CompilerEngine->get('/home/boozkie/public_html/resources/views/errors/404.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException))) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/View/View.php:139) at Illuminate\View\View->getContents() (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/View/View.php:122) at Illuminate\View\View->renderContents() (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/View/View.php:91) at Illuminate\View\View->render() (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Http/Response.php:62) at Illuminate\Http\Response->setContent(object(View)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Http/Response.php:34) at Illuminate\Http\Response->__construct(object(View), 404, array()) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:55) at Illuminate\Routing\ResponseFactory->make(object(View), 404, array()) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:85) at Illuminate\Routing\ResponseFactory->view('errors::404', array('errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)), 404, array()) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:408) at Illuminate\Foundation\Exceptions\Handler->renderHttpException(object(NotFoundHttpException)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:313) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(NotFoundHttpException)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:210) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(NotFoundHttpException)) (/home/boozkie/public_html/app/Exceptions/Handler.php:58) at App\Exceptions\Handler->render(object(Request), object(NotFoundHttpException)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(NotFoundHttpException)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:130) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27) at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/home/boozkie/public_html/vendor/fruitcake/laravel-cors/src/HandleCors.php:37) at Fruitcake\Cors\HandleCors->handle(object(Request), object(Closure)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/home/boozkie/public_html/vendor/fideloper/proxy/src/TrustProxies.php:57) at Fideloper\Proxy\TrustProxies->handle(object(Request), object(Closure)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/home/boozkie/public_html/public/index.php:59) |
[1/2] InvalidArgumentException |
---|
InvalidArgumentException: View [app] not found. at /home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:137 at Illuminate\View\FileViewFinder->findInPaths('app', array('/home/boozkie/public_html/resources/views')) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:79) at Illuminate\View\FileViewFinder->find('app') (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/View/Factory.php:131) at Illuminate\View\Factory->make('app', array('obLevel' => 0, '__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException))) (/home/boozkie/public_html/storage/framework/views/5bb644c99130233d016fc0ff20337e07f0ab923a.php:18) at include('/home/boozkie/public_html/storage/framework/views/5bb644c99130233d016fc0ff20337e07f0ab923a.php') (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:41) at Illuminate\View\Engines\PhpEngine->evaluatePath('/home/boozkie/public_html/storage/framework/views/5bb644c99130233d016fc0ff20337e07f0ab923a.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException))) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:57) at Illuminate\View\Engines\CompilerEngine->get('/home/boozkie/public_html/resources/views/errors/404.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException))) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/View/View.php:139) at Illuminate\View\View->getContents() (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/View/View.php:122) at Illuminate\View\View->renderContents() (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/View/View.php:91) at Illuminate\View\View->render() (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Http/Response.php:62) at Illuminate\Http\Response->setContent(object(View)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Http/Response.php:34) at Illuminate\Http\Response->__construct(object(View), 404, array()) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:55) at Illuminate\Routing\ResponseFactory->make(object(View), 404, array()) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:85) at Illuminate\Routing\ResponseFactory->view('errors::404', array('errors' => object(ViewErrorBag), 'exception' => object(NotFoundHttpException)), 404, array()) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:408) at Illuminate\Foundation\Exceptions\Handler->renderHttpException(object(NotFoundHttpException)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:313) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(NotFoundHttpException)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:210) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(NotFoundHttpException)) (/home/boozkie/public_html/app/Exceptions/Handler.php:58) at App\Exceptions\Handler->render(object(Request), object(NotFoundHttpException)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(NotFoundHttpException)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:130) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27) at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/home/boozkie/public_html/vendor/fruitcake/laravel-cors/src/HandleCors.php:37) at Fruitcake\Cors\HandleCors->handle(object(Request), object(Closure)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/home/boozkie/public_html/vendor/fideloper/proxy/src/TrustProxies.php:57) at Fideloper\Proxy\TrustProxies->handle(object(Request), object(Closure)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/home/boozkie/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/home/boozkie/public_html/public/index.php:59) |