/home/andrey/public_html/storage/framework/views/772c7cfe2aa0b0d8e7e81080995d8c0405165209.php
<div class="clearfix"></div>
<?php if(session()->has('message')): ?>
<p class="alert <?php echo e(session()->get('alert-class', 'alert-info')); ?>"><?php echo e(session()->get('message')); ?></p>
<?php elseif(session()->has('messageSecondary')): ?>
<p class="alert secondary <?php echo e(session()->get('alert-class', 'alert-info')); ?>"><?php echo e(session()->get('messageSecondary')); ?></p>
<?php endif; ?>
<?php if(isset($errors) && count($errors) > 0): ?>
<div class="alert alert-danger">
<?php foreach($errors->all() as $error): ?>
<?php echo e($error); ?> <br>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<div class="col-xs-12 col-sm-7 col-md-6">
<ul class="nav navbar-nav icons pull-right icons-top">
<li><a href="javascript:void(0);" title="<?php echo e(user()->mandantUsers->first()->role->pluck('name')->implode(', ')); ?>">
<?php echo e(user()->username); ?>
</a></li>
<li><a href="/"><span class="nav-icon icon-home" title="Zur Startseite"></span><span
class="white-bgrnd">Home</span></a></li>
<li><a href="<?php echo e(url('benutzer/profil')); ?>" title="Mein Benutzerprofil"><span
class="nav-icon icon-profil"></span><span class="white-bgrnd">Profil</span></a></li>
<?php if(ViewHelper::universalHasPermission([35])): ?>
<li><a href="<?php echo e(url('logout-confirm')); ?>" title="Abmelden"><span
class="nav-icon icon-logout"></span><span class="white-bgrnd">Log out</span></a></li>
<?php else: ?>
<li><a href="<?php echo e(url('logout')); ?>" title="Abmelden"><span class="nav-icon icon-logout"></span><span
class="white-bgrnd">Log out</span></a></li>
<?php endif; ?>
<li><a href="<?php echo e(url('kontakt')); ?>" title="NEPTUN Kontaktieren"><span
class="nav-icon icon-kontakt"></span><span class="white-bgrnd">Kontakt</span></a></li>
<li>
<?php
$notifyClass = '';
Arguments
-
"Call to a member function first() on null (View: /home/andrey/public_html/resources/views/layouts/top.blade.php) (View: /home/andrey/public_html/resources/views/layouts/top.blade.php) (View: /home/andrey/public_html/resources/views/layouts/top.blade.php)"
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// 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 (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws $e
*/
protected function handleViewException(Exception $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
Arguments
ErrorException {#1384
#message: "Call to a member function first() on null (View: /home/andrey/public_html/resources/views/layouts/top.blade.php) (View: /home/andrey/public_html/resources/views/layouts/top.blade.php)"
#code: 0
#file: "/home/andrey/public_html/storage/framework/views/772c7cfe2aa0b0d8e7e81080995d8c0405165209.php"
#line: 27
-previous: ErrorException {#1397
#message: "Call to a member function first() on null (View: /home/andrey/public_html/resources/views/layouts/top.blade.php)"
#code: 0
#file: "/home/andrey/public_html/storage/framework/views/772c7cfe2aa0b0d8e7e81080995d8c0405165209.php"
#line: 27
-previous: FatalThrowableError {#1396
#message: "Call to a member function first() on null"
#code: 0
#file: "/home/andrey/public_html/storage/framework/views/772c7cfe2aa0b0d8e7e81080995d8c0405165209.php"
#line: 27
#severity: E_ERROR
}
#severity: E_ERROR
}
#severity: E_ERROR
}
1
/home/andrey/public_html/storage/framework/views/772c7cfe2aa0b0d8e7e81080995d8c0405165209.php
<div class="clearfix"></div>
<?php if(session()->has('message')): ?>
<p class="alert <?php echo e(session()->get('alert-class', 'alert-info')); ?>"><?php echo e(session()->get('message')); ?></p>
<?php elseif(session()->has('messageSecondary')): ?>
<p class="alert secondary <?php echo e(session()->get('alert-class', 'alert-info')); ?>"><?php echo e(session()->get('messageSecondary')); ?></p>
<?php endif; ?>
<?php if(isset($errors) && count($errors) > 0): ?>
<div class="alert alert-danger">
<?php foreach($errors->all() as $error): ?>
<?php echo e($error); ?> <br>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<div class="col-xs-12 col-sm-7 col-md-6">
<ul class="nav navbar-nav icons pull-right icons-top">
<li><a href="javascript:void(0);" title="<?php echo e(user()->mandantUsers->first()->role->pluck('name')->implode(', ')); ?>">
<?php echo e(user()->username); ?>
</a></li>
<li><a href="/"><span class="nav-icon icon-home" title="Zur Startseite"></span><span
class="white-bgrnd">Home</span></a></li>
<li><a href="<?php echo e(url('benutzer/profil')); ?>" title="Mein Benutzerprofil"><span
class="nav-icon icon-profil"></span><span class="white-bgrnd">Profil</span></a></li>
<?php if(ViewHelper::universalHasPermission([35])): ?>
<li><a href="<?php echo e(url('logout-confirm')); ?>" title="Abmelden"><span
class="nav-icon icon-logout"></span><span class="white-bgrnd">Log out</span></a></li>
<?php else: ?>
<li><a href="<?php echo e(url('logout')); ?>" title="Abmelden"><span class="nav-icon icon-logout"></span><span
class="white-bgrnd">Log out</span></a></li>
<?php endif; ?>
<li><a href="<?php echo e(url('kontakt')); ?>" title="NEPTUN Kontaktieren"><span
class="nav-icon icon-kontakt"></span><span class="white-bgrnd">Kontakt</span></a></li>
<li>
<?php
$notifyClass = '';
Arguments
"Call to a member function first() on null (View: /home/andrey/public_html/resources/views/layouts/top.blade.php) (View: /home/andrey/public_html/resources/views/layouts/top.blade.php)"
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// 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 (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws $e
*/
protected function handleViewException(Exception $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
Arguments
ErrorException {#1397
#message: "Call to a member function first() on null (View: /home/andrey/public_html/resources/views/layouts/top.blade.php)"
#code: 0
#file: "/home/andrey/public_html/storage/framework/views/772c7cfe2aa0b0d8e7e81080995d8c0405165209.php"
#line: 27
-previous: FatalThrowableError {#1396
#message: "Call to a member function first() on null"
#code: 0
#file: "/home/andrey/public_html/storage/framework/views/772c7cfe2aa0b0d8e7e81080995d8c0405165209.php"
#line: 27
#severity: E_ERROR
}
#severity: E_ERROR
}
2
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// 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 (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws $e
*/
protected function handleViewException(Exception $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
}
Arguments
FatalThrowableError {#1396
#message: "Call to a member function first() on null"
#code: 0
#file: "/home/andrey/public_html/storage/framework/views/772c7cfe2aa0b0d8e7e81080995d8c0405165209.php"
#line: 27
#severity: E_ERROR
}
3
/home/andrey/public_html/storage/framework/views/772c7cfe2aa0b0d8e7e81080995d8c0405165209.php
<div class="clearfix"></div>
<?php if(session()->has('message')): ?>
<p class="alert <?php echo e(session()->get('alert-class', 'alert-info')); ?>"><?php echo e(session()->get('message')); ?></p>
<?php elseif(session()->has('messageSecondary')): ?>
<p class="alert secondary <?php echo e(session()->get('alert-class', 'alert-info')); ?>"><?php echo e(session()->get('messageSecondary')); ?></p>
<?php endif; ?>
<?php if(isset($errors) && count($errors) > 0): ?>
<div class="alert alert-danger">
<?php foreach($errors->all() as $error): ?>
<?php echo e($error); ?> <br>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<div class="col-xs-12 col-sm-7 col-md-6">
<ul class="nav navbar-nav icons pull-right icons-top">
<li><a href="javascript:void(0);" title="<?php echo e(user()->mandantUsers->first()->role->pluck('name')->implode(', ')); ?>">
<?php echo e(user()->username); ?>
</a></li>
<li><a href="/"><span class="nav-icon icon-home" title="Zur Startseite"></span><span
class="white-bgrnd">Home</span></a></li>
<li><a href="<?php echo e(url('benutzer/profil')); ?>" title="Mein Benutzerprofil"><span
class="nav-icon icon-profil"></span><span class="white-bgrnd">Profil</span></a></li>
<?php if(ViewHelper::universalHasPermission([35])): ?>
<li><a href="<?php echo e(url('logout-confirm')); ?>" title="Abmelden"><span
class="nav-icon icon-logout"></span><span class="white-bgrnd">Log out</span></a></li>
<?php else: ?>
<li><a href="<?php echo e(url('logout')); ?>" title="Abmelden"><span class="nav-icon icon-logout"></span><span
class="white-bgrnd">Log out</span></a></li>
<?php endif; ?>
<li><a href="<?php echo e(url('kontakt')); ?>" title="NEPTUN Kontaktieren"><span
class="nav-icon icon-kontakt"></span><span class="white-bgrnd">Kontakt</span></a></li>
<li>
<?php
$notifyClass = '';
Arguments
"Call to a member function first() on null"
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
/**
* Get the evaluated contents of the view at the given path.
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// 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 (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws $e
*/
protected function handleViewException(Exception $e, $obLevel)
{
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php
* @param array $data
* @return string
*/
public function get($path, array $data = [])
{
$this->lastCompiled[] = $path;
// If this given view has expired, which means it has simply been edited since
// it was last compiled, we will re-compile the views so we can evaluate a
// fresh copy of the view. We'll pass the compiler the path of the view.
if ($this->compiler->isExpired($path)) {
$this->compiler->compile($path);
}
$compiled = $this->compiler->getCompiledPath($path);
// 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($compiled, $data);
array_pop($this->lastCompiled);
return $results;
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws $e
*/
protected function handleViewException(Exception $e, $obLevel)
{
$e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
parent::handleViewException($e, $obLevel);
Arguments
"/home/andrey/public_html/storage/framework/views/772c7cfe2aa0b0d8e7e81080995d8c0405165209.php"
array:4 [
"__env" => Factory {#117}
"app" => Application {#4}
"obLevel" => 2
"exception" => NotFoundHttpException {#764
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
#line: 161
}
]
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
/**
* Get the sections of the rendered view.
*
* @return array
*/
public function renderSections()
{
return $this->render(function () {
return $this->factory->getSections();
});
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
protected function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
foreach ($data as $key => $value) {
if ($value instanceof Renderable) {
$data[$key] = $value->render();
}
}
return $data;
}
Arguments
"/home/andrey/public_html/resources/views/layouts/top.blade.php"
array:4 [
"__env" => Factory {#117}
"app" => Application {#4}
"obLevel" => 2
"exception" => NotFoundHttpException {#764
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
#line: 161
}
]
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
*/
protected function renderContents()
{
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// 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();
return $contents;
}
/**
* Get the sections of the rendered view.
*
* @return array
*/
public function renderSections()
{
return $this->render(function () {
return $this->factory->getSections();
});
}
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
$this->view = $view;
$this->path = $path;
$this->engine = $engine;
$this->factory = $factory;
$this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
}
/**
* Get the string contents of the view.
*
* @param callable|null $callback
* @return string
*
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? call_user_func($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
// another view gets rendered in the future by the application developer.
$this->factory->flushSectionsIfDoneRendering();
return ! is_null($response) ? $response : $contents;
} catch (Exception $e) {
$this->factory->flushSections();
throw $e;
} catch (Throwable $e) {
$this->factory->flushSections();
throw $e;
}
}
/home/andrey/public_html/storage/framework/views/64c482ab3d94933118ad3bbfb527dc5509d5acb2.php
<!--End loader div-->
<div class="page-title">
<div class="">
<div class="col-xs-12 col-md-12 ">
<div class="fixed-row <?php echo $__env->yieldContent('page-title-class'); ?>">
<div class="fixed-position ">
<h1 class="page-title"><span class="white-bgrnd inline-block"><?php echo $__env->yieldContent('page-title'); ?></span></h1>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
<div id="wrapper">
<!-- Header search -->
<?php echo $__env->make('layouts.top', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<!-- Sidebar navigation -->
<?php echo $__env->make('layouts.sidebar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<!-- Page Content -->
<div id="page-wrapper">
<div class="container-fluid first">
<!-- Backend content -->
<?php echo $__env->yieldContent('content'); ?>
<?php echo $__env->yieldContent('modal'); ?>
<!--search results-->
<?php echo $__env->yieldContent('searchResults'); ?><!-- End search results-->
</div> <!-- End container fluid-->
<?php echo $__env->make('layouts.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
</div> <!-- End #wrapper-->
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
/**
* Get the evaluated contents of the view at the given path.
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// 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 (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws $e
*/
protected function handleViewException(Exception $e, $obLevel)
{
Arguments
"/home/andrey/public_html/storage/framework/views/64c482ab3d94933118ad3bbfb527dc5509d5acb2.php"
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php
* @param array $data
* @return string
*/
public function get($path, array $data = [])
{
$this->lastCompiled[] = $path;
// If this given view has expired, which means it has simply been edited since
// it was last compiled, we will re-compile the views so we can evaluate a
// fresh copy of the view. We'll pass the compiler the path of the view.
if ($this->compiler->isExpired($path)) {
$this->compiler->compile($path);
}
$compiled = $this->compiler->getCompiledPath($path);
// 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($compiled, $data);
array_pop($this->lastCompiled);
return $results;
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws $e
*/
protected function handleViewException(Exception $e, $obLevel)
{
$e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
parent::handleViewException($e, $obLevel);
Arguments
"/home/andrey/public_html/storage/framework/views/64c482ab3d94933118ad3bbfb527dc5509d5acb2.php"
array:4 [
"__env" => Factory {#117}
"app" => Application {#4}
"obLevel" => 1
"exception" => NotFoundHttpException {#764
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
#line: 161
}
]
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
/**
* Get the sections of the rendered view.
*
* @return array
*/
public function renderSections()
{
return $this->render(function () {
return $this->factory->getSections();
});
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
protected function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
foreach ($data as $key => $value) {
if ($value instanceof Renderable) {
$data[$key] = $value->render();
}
}
return $data;
}
Arguments
"/home/andrey/public_html/resources/views/master.blade.php"
array:4 [
"__env" => Factory {#117}
"app" => Application {#4}
"obLevel" => 1
"exception" => NotFoundHttpException {#764
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
#line: 161
}
]
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
*/
protected function renderContents()
{
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// 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();
return $contents;
}
/**
* Get the sections of the rendered view.
*
* @return array
*/
public function renderSections()
{
return $this->render(function () {
return $this->factory->getSections();
});
}
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
$this->view = $view;
$this->path = $path;
$this->engine = $engine;
$this->factory = $factory;
$this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
}
/**
* Get the string contents of the view.
*
* @param callable|null $callback
* @return string
*
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? call_user_func($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
// another view gets rendered in the future by the application developer.
$this->factory->flushSectionsIfDoneRendering();
return ! is_null($response) ? $response : $contents;
} catch (Exception $e) {
$this->factory->flushSections();
throw $e;
} catch (Throwable $e) {
$this->factory->flushSections();
throw $e;
}
}
/home/andrey/public_html/storage/framework/views/9fbbd14dfd846e7be731964afb5e907c0bdac587.php
<?php $__env->startSection('bodyClass'); ?>
four-o-four
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="error-404 text-center">
<h1><span class="fa fa-meh-o fa-5x"></span></h1>
<div class="clearfix"></div><br>
<h3><?php echo app('translator')->get('navigation.error404'); ?></h3>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
/**
* Get the evaluated contents of the view at the given path.
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// 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 (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws $e
*/
protected function handleViewException(Exception $e, $obLevel)
{
Arguments
"/home/andrey/public_html/storage/framework/views/9fbbd14dfd846e7be731964afb5e907c0bdac587.php"
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php
* @param array $data
* @return string
*/
public function get($path, array $data = [])
{
$this->lastCompiled[] = $path;
// If this given view has expired, which means it has simply been edited since
// it was last compiled, we will re-compile the views so we can evaluate a
// fresh copy of the view. We'll pass the compiler the path of the view.
if ($this->compiler->isExpired($path)) {
$this->compiler->compile($path);
}
$compiled = $this->compiler->getCompiledPath($path);
// 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($compiled, $data);
array_pop($this->lastCompiled);
return $results;
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws $e
*/
protected function handleViewException(Exception $e, $obLevel)
{
$e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
parent::handleViewException($e, $obLevel);
Arguments
"/home/andrey/public_html/storage/framework/views/9fbbd14dfd846e7be731964afb5e907c0bdac587.php"
array:3 [
"__env" => Factory {#117}
"app" => Application {#4}
"exception" => NotFoundHttpException {#764
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
#line: 161
}
]
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
/**
* Get the sections of the rendered view.
*
* @return array
*/
public function renderSections()
{
return $this->render(function () {
return $this->factory->getSections();
});
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
protected function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
foreach ($data as $key => $value) {
if ($value instanceof Renderable) {
$data[$key] = $value->render();
}
}
return $data;
}
Arguments
"/home/andrey/public_html/resources/views/errors/404.blade.php"
array:3 [
"__env" => Factory {#117}
"app" => Application {#4}
"exception" => NotFoundHttpException {#764
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
#line: 161
}
]
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
*/
protected function renderContents()
{
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// 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();
return $contents;
}
/**
* Get the sections of the rendered view.
*
* @return array
*/
public function renderSections()
{
return $this->render(function () {
return $this->factory->getSections();
});
}
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
$this->view = $view;
$this->path = $path;
$this->engine = $engine;
$this->factory = $factory;
$this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
}
/**
* Get the string contents of the view.
*
* @param callable|null $callback
* @return string
*
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? call_user_func($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
// another view gets rendered in the future by the application developer.
$this->factory->flushSectionsIfDoneRendering();
return ! is_null($response) ? $response : $contents;
} catch (Exception $e) {
$this->factory->flushSections();
throw $e;
} catch (Throwable $e) {
$this->factory->flushSections();
throw $e;
}
}
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Http/Response.php
* @return $this
*/
public function setContent($content)
{
$this->original = $content;
// If the content is "JSONable" we will set the appropriate header and convert
// the content to JSON. This is useful when returning something like models
// from routes that will be automatically transformed to their JSON form.
if ($this->shouldBeJson($content)) {
$this->header('Content-Type', 'application/json');
$content = $this->morphToJson($content);
}
// 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();
}
return parent::setContent($content);
}
/**
* Morph the given content into JSON.
*
* @param mixed $content
* @return string
*/
protected function morphToJson($content)
{
if ($content instanceof Jsonable) {
return $content->toJson();
}
return json_encode($content);
}
/home/andrey/public_html/vendor/symfony/http-foundation/Response.php
506 => 'Variant Also Negotiates (Experimental)', // RFC2295
507 => 'Insufficient Storage', // RFC4918
508 => 'Loop Detected', // RFC5842
510 => 'Not Extended', // RFC2774
511 => 'Network Authentication Required', // RFC6585
);
/**
* Constructor.
*
* @param mixed $content The response content, see setContent()
* @param int $status The response status code
* @param array $headers An array of response headers
*
* @throws \InvalidArgumentException When the HTTP status code is not valid
*/
public function __construct($content = '', $status = 200, $headers = array())
{
$this->headers = new ResponseHeaderBag($headers);
$this->setContent($content);
$this->setStatusCode($status);
$this->setProtocolVersion('1.0');
}
/**
* Factory method for chainability.
*
* Example:
*
* return Response::create($body, 200)
* ->setSharedMaxAge(300);
*
* @param mixed $content The response content, see setContent()
* @param int $status The response status code
* @param array $headers An array of response headers
*
* @return Response
*/
public static function create($content = '', $status = 200, $headers = array())
{
Arguments
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php
* @param \Illuminate\Routing\Redirector $redirector
* @return void
*/
public function __construct(ViewFactory $view, Redirector $redirector)
{
$this->view = $view;
$this->redirector = $redirector;
}
/**
* Return a new response from the application.
*
* @param string $content
* @param int $status
* @param array $headers
* @return \Illuminate\Http\Response
*/
public function make($content = '', $status = 200, array $headers = [])
{
return new Response($content, $status, $headers);
}
/**
* Return a new view response from the application.
*
* @param string $view
* @param array $data
* @param int $status
* @param array $headers
* @return \Illuminate\Http\Response
*/
public function view($view, $data = [], $status = 200, array $headers = [])
{
return static::make($this->view->make($view, $data), $status, $headers);
}
/**
* Return a new JSON response from the application.
*
* @param string|array $data
Arguments
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php
* @param array $headers
* @return \Illuminate\Http\Response
*/
public function make($content = '', $status = 200, array $headers = [])
{
return new Response($content, $status, $headers);
}
/**
* Return a new view response from the application.
*
* @param string $view
* @param array $data
* @param int $status
* @param array $headers
* @return \Illuminate\Http\Response
*/
public function view($view, $data = [], $status = 200, array $headers = [])
{
return static::make($this->view->make($view, $data), $status, $headers);
}
/**
* Return a new JSON response from the application.
*
* @param string|array $data
* @param int $status
* @param array $headers
* @param int $options
* @return \Illuminate\Http\JsonResponse
*/
public function json($data = [], $status = 200, array $headers = [], $options = 0)
{
if ($data instanceof Arrayable && ! $data instanceof JsonSerializable) {
$data = $data->toArray();
}
return new JsonResponse($data, $status, $headers, $options);
}
Arguments
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
* @param \Exception $e
* @return void
*/
public function renderForConsole($output, Exception $e)
{
(new ConsoleApplication)->renderException($e, $output);
}
/**
* Render the given HttpException.
*
* @param \Symfony\Component\HttpKernel\Exception\HttpException $e
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function renderHttpException(HttpException $e)
{
$status = $e->getStatusCode();
if (view()->exists("errors.{$status}")) {
return response()->view("errors.{$status}", ['exception' => $e], $status, $e->getHeaders());
} else {
return $this->convertExceptionToResponse($e);
}
}
/**
* Create a Symfony response for the given exception.
*
* @param \Exception $e
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Exception $e)
{
$e = FlattenException::create($e);
$handler = new SymfonyExceptionHandler(config('app.debug'));
$decorated = $this->decorate($handler->getContent($e), $handler->getStylesheet($e));
return SymfonyResponse::create($decorated, $e->getStatusCode(), $e->getHeaders());
Arguments
"errors.404"
array:1 [
"exception" => NotFoundHttpException {#764
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
#line: 161
}
]
404
[]
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
* @param \Illuminate\Http\Request $request
* @param \Exception $e
* @return \Symfony\Component\HttpFoundation\Response
*/
public function render($request, Exception $e)
{
if ($e instanceof HttpResponseException) {
return $e->getResponse();
} elseif ($e instanceof ModelNotFoundException) {
$e = new NotFoundHttpException($e->getMessage(), $e);
} elseif ($e instanceof AuthenticationException) {
return $this->unauthenticated($request, $e);
} elseif ($e instanceof AuthorizationException) {
$e = new HttpException(403, $e->getMessage());
} elseif ($e instanceof ValidationException && $e->getResponse()) {
return $e->getResponse();
}
if ($this->isHttpException($e)) {
return $this->toIlluminateResponse($this->renderHttpException($e), $e);
} else {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
}
/**
* Map exception into an illuminate response.
*
* @param \Symfony\Component\HttpFoundation\Response $response
* @param \Exception $e
* @return \Illuminate\Http\Response
*/
protected function toIlluminateResponse($response, Exception $e)
{
$response = new Response($response->getContent(), $response->getStatusCode(), $response->headers->all());
return $response->withException($e);
}
/**
Arguments
NotFoundHttpException {#764
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
#line: 161
}
/home/andrey/public_html/app/Exceptions/Handler.php
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Exception $e
* @return void
*/
public function report(Exception $e)
{
parent::report($e);
}
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $e
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $e)
{
return parent::render($request, $e);
}
/**
* Create a Symfony response for the given exception.
*
* @param \Exception $e
* @return mixed
*/
protected function convertExceptionToResponse(Exception $e){
if (config('app.debug')) {
$whoops = new \Whoops\Run;
if(request()->wantsJson())
{
$whoops->pushHandler(new \Whoops\Handler\JsonResponseHandler());
}
else
{
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
}
return response()->make(
Arguments
Request {#41}
NotFoundHttpException {#764
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
#line: 161
}
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
if (! $this->container->bound(ExceptionHandler::class) || ! $passable instanceof Request) {
throw $e;
}
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (method_exists($response, 'withException')) {
$response->withException($e);
}
return $response;
}
}
Arguments
Request {#41}
NotFoundHttpException {#764
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
#line: 161
}
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return call_user_func($destination, $passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
if (! $this->container->bound(ExceptionHandler::class) || ! $passable instanceof Request) {
throw $e;
}
Arguments
Request {#41}
NotFoundHttpException {#764
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
#line: 161
}
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php
{
$this->app = $app;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
*/
public function handle($request, Closure $next)
{
if ($this->app->isDownForMaintenance()) {
throw new HttpException(503);
}
return $next($request);
}
}
Arguments
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return call_user_func($pipe, $passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->container->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return call_user_func_array([$pipe, $this->method], $parameters);
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
return call_user_func($destination, $passable);
};
}
/**
* Parse full pipe string to get name and parameters.
*
Arguments
Request {#41}
Closure {#759
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#30 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#29
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#26 …}
parameters: {
$request: {}
}
file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php"
line: "243 to 247"
}
}
file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "50 to 58"
}
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return call_user_func($pipe, $passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->container->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return call_user_func_array([$pipe, $this->method], $parameters);
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
return call_user_func($destination, $passable);
};
}
/**
* Parse full pipe string to get name and parameters.
*
Arguments
array:2 [
0 => CheckForMaintenanceMode {#766}
1 => "handle"
]
array:2 [
0 => Request {#41}
1 => Closure {#759
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#30 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#29
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#26 …}
parameters: {
$request: {}
}
file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php"
line: "243 to 247"
}
}
file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "50 to 58"
}
]
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
/**
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
return call_user_func($slice($stack, $pipe), $passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return call_user_func($destination, $passable);
Arguments
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
/**
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
return call_user_func($slice($stack, $pipe), $passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return call_user_func($destination, $passable);
Arguments
Closure {#762
class: "Illuminate\Pipeline\Pipeline"
this: Pipeline {#30 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#759
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#30 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#29
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#26 …}
parameters: {
$request: {}
}
file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php"
line: "243 to 247"
}
}
file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "50 to 58"
}
$pipe: "Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode"
}
file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php"
line: "114 to 137"
}
Request {#41}
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
{
$this->method = $method;
return $this;
}
/**
* Run the pipeline with a final destination callback.
*
* @param \Closure $destination
* @return mixed
*/
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$pipes = array_reverse($this->pipes);
return call_user_func(
array_reduce($pipes, $this->getSlice(), $firstSlice), $this->passable
);
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
if ($pipe instanceof Closure) {
// If the pipe is an instance of a Closure, we will just call it directly but
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return call_user_func($pipe, $passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
Arguments
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
{
$this->method = $method;
return $this;
}
/**
* Run the pipeline with a final destination callback.
*
* @param \Closure $destination
* @return mixed
*/
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$pipes = array_reverse($this->pipes);
return call_user_func(
array_reduce($pipes, $this->getSlice(), $firstSlice), $this->passable
);
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
if ($pipe instanceof Closure) {
// If the pipe is an instance of a Closure, we will just call it directly but
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return call_user_func($pipe, $passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
Arguments
Closure {#761
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#30 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#759
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#30 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#29
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#26 …}
parameters: {
$request: {}
}
file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php"
line: "243 to 247"
}
}
file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "50 to 58"
}
$pipe: "Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode"
}
file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 38"
}
Request {#41}
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
}
/**
* Send the given request through the middleware / router.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
protected function sendRequestThroughRouter($request)
{
$this->app->instance('request', $request);
Facade::clearResolvedInstance('request');
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Call the terminate method on any terminable middleware.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Response $response
* @return void
*/
public function terminate($request, $response)
{
$middlewares = $this->app->shouldSkipMiddleware() ? [] : array_merge(
$this->gatherRouteMiddlewares($request),
$this->middleware
);
foreach ($middlewares as $middleware) {
list($name, $parameters) = $this->parseMiddleware($middleware);
$instance = $this->app->make($name);
Arguments
Closure {#29
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#26 …}
parameters: {
$request: {}
}
file: "/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php"
line: "243 to 247"
}
/home/andrey/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
$router->middlewareGroup($key, $middleware);
}
foreach ($this->routeMiddleware as $key => $middleware) {
$router->middleware($key, $middleware);
}
}
/**
* Handle an incoming HTTP request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Exception $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
} catch (Throwable $e) {
$this->reportException($e = new FatalThrowableError($e));
$response = $this->renderException($request, $e);
}
$this->app['events']->fire('kernel.handled', [$request, $response]);
return $response;
}
/**
* Send the given request through the middleware / router.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
Arguments
/home/andrey/public_html/public/index.php
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
Arguments