Illuminate \ View \ ViewException (E_ERROR)
Undefined array key "category" (View: /usr/www/users/typottg/matshop/resources/views/category/show.blade.php)
Previous exceptions
  • Undefined array key "category" (0)
Illuminate\View\ViewException thrown with message "Undefined array key "category" (View: /usr/www/users/typottg/matshop/resources/views/category/show.blade.php)" Stacktrace: #49 Illuminate\View\Engines\CompilerEngine:handleViewException in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:43 #48 ErrorException in /usr/www/users/typottg/matshop/storage/framework/views/9a1b8123a52e1299addfb04c501d0f4b3c2de9a3.php:347 #47 Illuminate\Foundation\Bootstrap\HandleExceptions:handleError in /usr/www/users/typottg/matshop/storage/framework/views/9a1b8123a52e1299addfb04c501d0f4b3c2de9a3.php:347 #46 include in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:41 #45 Illuminate\View\Engines\PhpEngine:evaluatePath in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:57 #44 Illuminate\View\Engines\CompilerEngine:get in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/View/View.php:139 #43 Illuminate\View\View:getContents in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/View/View.php:122 #42 Illuminate\View\View:renderContents in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/View/View.php:91 #41 Illuminate\View\View:render in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Http/Response.php:62 #40 Illuminate\Http\Response:setContent in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Http/Response.php:34 #39 Illuminate\Http\Response:__construct in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Router.php:759 #38 Illuminate\Routing\Router:toResponse in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Router.php:731 #37 Illuminate\Routing\Router:prepareResponse in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Router.php:685 #36 Illuminate\Routing\Router:Illuminate\Routing\{closure} in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 #35 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /usr/www/users/typottg/matshop/app/Http/Middleware/LogAfterRequest.php:26 #34 App\Http\Middleware\LogAfterRequest:handle in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #33 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 #32 Illuminate\Routing\Middleware\SubstituteBindings:handle in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #31 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:78 #30 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #29 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 #28 Illuminate\View\Middleware\ShareErrorsFromSession:handle in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #27 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:116 #26 Illuminate\Session\Middleware\StartSession:handleStatefulRequest in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:62 #25 Illuminate\Session\Middleware\StartSession:handle in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #24 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 #23 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #22 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67 #21 Illuminate\Cookie\Middleware\EncryptCookies:handle in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #20 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103 #19 Illuminate\Pipeline\Pipeline:then in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Router.php:687 #18 Illuminate\Routing\Router:runRouteWithinStack in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Router.php:662 #17 Illuminate\Routing\Router:runRoute in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Router.php:628 #16 Illuminate\Routing\Router:dispatchToRoute in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Router.php:617 #15 Illuminate\Routing\Router:dispatch in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:165 #14 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 #13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /usr/www/users/typottg/matshop/vendor/fideloper/proxy/src/TrustProxies.php:57 #12 Fideloper\Proxy\TrustProxies:handle in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #11 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 #10 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #9 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 #8 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 #6 Illuminate\Foundation\Http\Middleware\ValidatePostSize:handle in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #5 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:63 #4 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #3 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103 #2 Illuminate\Pipeline\Pipeline:then in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140 #1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:109 #0 Illuminate\Foundation\Http\Kernel:handle in /usr/www/users/typottg/matshop/public/index.php:58
49
Illuminate\View\Engines\CompilerEngine handleViewException
/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php43
48
ErrorException
/storage/framework/views/9a1b8123a52e1299addfb04c501d0f4b3c2de9a3.php347
47
Illuminate\Foundation\Bootstrap\HandleExceptions handleError
/storage/framework/views/9a1b8123a52e1299addfb04c501d0f4b3c2de9a3.php347
46
include
/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php41
45
Illuminate\View\Engines\PhpEngine evaluatePath
/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php57
44
Illuminate\View\Engines\CompilerEngine get
/vendor/laravel/framework/src/Illuminate/View/View.php139
43
Illuminate\View\View getContents
/vendor/laravel/framework/src/Illuminate/View/View.php122
42
Illuminate\View\View renderContents
/vendor/laravel/framework/src/Illuminate/View/View.php91
41
Illuminate\View\View render
/vendor/laravel/framework/src/Illuminate/Http/Response.php62
40
Illuminate\Http\Response setContent
/vendor/laravel/framework/src/Illuminate/Http/Response.php34
39
Illuminate\Http\Response __construct
/vendor/laravel/framework/src/Illuminate/Routing/Router.php759
38
Illuminate\Routing\Router toResponse
/vendor/laravel/framework/src/Illuminate/Routing/Router.php731
37
Illuminate\Routing\Router prepareResponse
/vendor/laravel/framework/src/Illuminate/Routing/Router.php685
36
Illuminate\Routing\Router Illuminate\Routing\{closure}
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php128
35
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/app/Http/Middleware/LogAfterRequest.php26
34
App\Http\Middleware\LogAfterRequest handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
33
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php41
32
Illuminate\Routing\Middleware\SubstituteBindings handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
31
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php78
30
Illuminate\Foundation\Http\Middleware\VerifyCsrfToken handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
29
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php49
28
Illuminate\View\Middleware\ShareErrorsFromSession handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
27
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php116
26
Illuminate\Session\Middleware\StartSession handleStatefulRequest
/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php62
25
Illuminate\Session\Middleware\StartSession handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
24
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php37
23
Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
22
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php67
21
Illuminate\Cookie\Middleware\EncryptCookies handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
20
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php103
19
Illuminate\Pipeline\Pipeline then
/vendor/laravel/framework/src/Illuminate/Routing/Router.php687
18
Illuminate\Routing\Router runRouteWithinStack
/vendor/laravel/framework/src/Illuminate/Routing/Router.php662
17
Illuminate\Routing\Router runRoute
/vendor/laravel/framework/src/Illuminate/Routing/Router.php628
16
Illuminate\Routing\Router dispatchToRoute
/vendor/laravel/framework/src/Illuminate/Routing/Router.php617
15
Illuminate\Routing\Router dispatch
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php165
14
Illuminate\Foundation\Http\Kernel Illuminate\Foundation\Http\{closure}
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php128
13
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/fideloper/proxy/src/TrustProxies.php57
12
Fideloper\Proxy\TrustProxies handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
11
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php21
10
Illuminate\Foundation\Http\Middleware\TransformsRequest handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
9
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php21
8
Illuminate\Foundation\Http\Middleware\TransformsRequest handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
7
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php27
6
Illuminate\Foundation\Http\Middleware\ValidatePostSize handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
5
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php63
4
Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
3
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php103
2
Illuminate\Pipeline\Pipeline then
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php140
1
Illuminate\Foundation\Http\Kernel sendRequestThroughRouter
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php109
0
Illuminate\Foundation\Http\Kernel handle
/public/index.php58
/usr/www/users/typottg/matshop/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 (Throwable $e) {
            $this->handleViewException($e, $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Throwable  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Throwable
     */
    protected function handleViewException(Throwable $e, $obLevel)
    {
        while (ob_get_level() > $obLevel) {
            ob_end_clean();
        }
 
/usr/www/users/typottg/matshop/storage/framework/views/9a1b8123a52e1299addfb04c501d0f4b3c2de9a3.php
                                <?php endif; ?>
 
                                <?php else: ?>
 
                                    <div class="col">
 
                                        <p>Nenašli sa žiadne produkty.</p>
 
                                    </div>
 
                                <?php endif; ?>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
 
 
 
                <?php if($_COOKIE['category'] == 0): ?> <!--ALLEGRO-->
                    <div class="col-12 mb-3 notranslate">
                        <a target="_blank" class="btn btn-primary"
                           href="https://allegro.pl/kategoria/<?php echo e($category->allegro_id); ?>">Otvoriť
                            kategóriu <?php echo e($category->title); ?> na Allegro.pl</a>
 
                        <a target="_blank" class="btn btn-primary mt-3 mt-md-0"
                           href="/url-objednavka">Objednávka cez URL adresu</a>
 
                    </div>
 
                    
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check( 'admin' )): ?>
                        <div class="col-12 col-md-6 notranslate">
                            <div id="search-form">
                                <div class="input-group">
 
                                    <?php if( isset($request) && $request->query('phrase')): ?>
                                        <input type="text" id="phrase" name="phrase" value="<?php echo e($request->query('phrase')); ?>"
                                               class="form-control form-control-lg" placeholder="Vyhľadávanie"
                                               data-toggle="tooltip"
Arguments
  1. "Undefined array key "category""
    
Exception message: Undefined array key "category"
/usr/www/users/typottg/matshop/storage/framework/views/9a1b8123a52e1299addfb04c501d0f4b3c2de9a3.php
                                <?php endif; ?>
 
                                <?php else: ?>
 
                                    <div class="col">
 
                                        <p>Nenašli sa žiadne produkty.</p>
 
                                    </div>
 
                                <?php endif; ?>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
 
 
 
                <?php if($_COOKIE['category'] == 0): ?> <!--ALLEGRO-->
                    <div class="col-12 mb-3 notranslate">
                        <a target="_blank" class="btn btn-primary"
                           href="https://allegro.pl/kategoria/<?php echo e($category->allegro_id); ?>">Otvoriť
                            kategóriu <?php echo e($category->title); ?> na Allegro.pl</a>
 
                        <a target="_blank" class="btn btn-primary mt-3 mt-md-0"
                           href="/url-objednavka">Objednávka cez URL adresu</a>
 
                    </div>
 
                    
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check( 'admin' )): ?>
                        <div class="col-12 col-md-6 notranslate">
                            <div id="search-form">
                                <div class="input-group">
 
                                    <?php if( isset($request) && $request->query('phrase')): ?>
                                        <input type="text" id="phrase" name="phrase" value="<?php echo e($request->query('phrase')); ?>"
                                               class="form-control form-control-lg" placeholder="Vyhľadávanie"
                                               data-toggle="tooltip"
/usr/www/users/typottg/matshop/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 (Throwable $e) {
            $this->handleViewException($e, $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Throwable  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Throwable
     */
    protected function handleViewException(Throwable $e, $obLevel)
    {
        while (ob_get_level() > $obLevel) {
            ob_end_clean();
Arguments
  1. "/usr/www/users/typottg/matshop/storage/framework/views/9a1b8123a52e1299addfb04c501d0f4b3c2de9a3.php"
    
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php
     *
     * @param  string  $path
     * @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);
        }
 
        // 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;
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Throwable  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Throwable
     */
    protected function handleViewException(Throwable $e, $obLevel)
    {
        $e = new ViewException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
 
        parent::handleViewException($e, $obLevel);
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/View/View.php
        $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 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
     */
    public 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;
    }
 
/usr/www/users/typottg/matshop/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 evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
/usr/www/users/typottg/matshop/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 array|string
     *
     * @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
            // another view gets rendered in the future by the application developer.
            $this->factory->flushStateIfDoneRendering();
 
            return ! is_null($response) ? $response : $contents;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
/usr/www/users/typottg/matshop/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();
        }
 
        parent::setContent($content);
 
        return $this;
    }
 
    /**
     * Determine if the given content should be turned into JSON.
     *
     * @param  mixed  $content
     * @return bool
     */
    protected function shouldBeJson($content)
    {
        return $content instanceof Arrayable ||
               $content instanceof Jsonable ||
               $content instanceof ArrayObject ||
               $content instanceof JsonSerializable ||
               is_array($content);
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Http/Response.php
{
    use ResponseTrait, Macroable {
        Macroable::__call as macroCall;
    }
 
    /**
     * Create a new HTTP response.
     *
     * @param  mixed  $content
     * @param  int  $status
     * @param  array  $headers
     * @return void
     *
     * @throws \InvalidArgumentException
     */
    public function __construct($content = '', $status = 200, array $headers = [])
    {
        $this->headers = new ResponseHeaderBag($headers);
 
        $this->setContent($content);
        $this->setStatusCode($status);
        $this->setProtocolVersion('1.0');
    }
 
    /**
     * Set the content on the response.
     *
     * @param  mixed  $content
     * @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');
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Router.php
     */
    public static function toResponse($request, $response)
    {
        if ($response instanceof Responsable) {
            $response = $response->toResponse($request);
        }
 
        if ($response instanceof PsrResponseInterface) {
            $response = (new HttpFoundationFactory)->createResponse($response);
        } elseif ($response instanceof Model && $response->wasRecentlyCreated) {
            $response = new JsonResponse($response, 201);
        } elseif (! $response instanceof SymfonyResponse &&
                   ($response instanceof Arrayable ||
                    $response instanceof Jsonable ||
                    $response instanceof ArrayObject ||
                    $response instanceof JsonSerializable ||
                    is_array($response))) {
            $response = new JsonResponse($response);
        } elseif (! $response instanceof SymfonyResponse) {
            $response = new Response($response, 200, ['Content-Type' => 'text/html']);
        }
 
        if ($response->getStatusCode() === Response::HTTP_NOT_MODIFIED) {
            $response->setNotModified();
        }
 
        return $response->prepare($request);
    }
 
    /**
     * Substitute the route bindings onto the route.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return \Illuminate\Routing\Route
     *
     * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
     */
    public function substituteBindings($route)
    {
        foreach ($route->parameters() as $key => $value) {
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Router.php
     * Sort the given middleware by priority.
     *
     * @param  \Illuminate\Support\Collection  $middlewares
     * @return array
     */
    protected function sortMiddleware(Collection $middlewares)
    {
        return (new SortedMiddleware($this->middlewarePriority, $middlewares))->all();
    }
 
    /**
     * Create a response instance from the given value.
     *
     * @param  \Symfony\Component\HttpFoundation\Request  $request
     * @param  mixed  $response
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function prepareResponse($request, $response)
    {
        return static::toResponse($request, $response);
    }
 
    /**
     * Static version of prepareResponse.
     *
     * @param  \Symfony\Component\HttpFoundation\Request  $request
     * @param  mixed  $response
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public static function toResponse($request, $response)
    {
        if ($response instanceof Responsable) {
            $response = $response->toResponse($request);
        }
 
        if ($response instanceof PsrResponseInterface) {
            $response = (new HttpFoundationFactory)->createResponse($response);
        } elseif ($response instanceof Model && $response->wasRecentlyCreated) {
            $response = new JsonResponse($response, 201);
        } elseif (! $response instanceof SymfonyResponse &&
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Router.php
    /**
     * Run the given route within a Stack "onion" instance.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
                        ->then(function ($request) use ($route) {
                            return $this->prepareResponse(
                                $request, $route->run()
                            );
                        });
    }
 
    /**
     * Gather the middleware for the given route with resolved class names.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return array
     */
    public function gatherRouteMiddleware(Route $route)
    {
        $excluded = collect($route->excludedMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten()->values()->all();
 
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten()->reject(function ($name) use ($excluded) {
            return in_array($name, $excluded, true);
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
     * @return mixed
     */
    public function thenReturn()
    {
        return $this->then(function ($passable) {
            return $passable;
        });
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            try {
                return $destination($passable);
            } catch (Throwable $e) {
                return $this->handleException($passable, $e);
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    if (is_callable($pipe)) {
                        // If the pipe is a callable, then we will call it directly, but otherwise we
                        // will resolve the pipes out of the dependency container and call it with
                        // the appropriate method and arguments, returning the results back out.
/usr/www/users/typottg/matshop/app/Http/Middleware/LogAfterRequest.php
use App\UsersLog;
use Auth;
use Log;
 
class LogAfterRequest 
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next) {
 
        $uuid = isset($_COOKIE['uuid']) ? $_COOKIE['uuid'] : '';
        if ($uuid == '') {
            setcookie('uuid', self::gen_uuid());
        }
        return $next($request);
    }
 
    public function terminate($request, $response) {
 
        $uuid = isset($_COOKIE['uuid']) ? $_COOKIE['uuid'] : '';
        $log = new UsersLog();
        $log->url = $request->fullUrl();
        $log->method = $request->method();
        $log->ip = $request->ip();
        $log->request = json_encode($request->all());
        $log->uuuid = $uuid;
        $log->user_id = Auth::id();
        $log->referer = $request->headers->get('referer');
        $log->save();
    }
 
    public static function gen_uuid()
    {
        return sprintf(
            '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$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->getContainer()->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];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php
     */
    public function __construct(Registrar $router)
    {
        $this->router = $router;
    }
 
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        $this->router->substituteBindings($route = $request->route());
 
        $this->router->substituteImplicitBindings($route);
 
        return $next($request);
    }
}
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$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->getContainer()->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];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php
    }
 
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     *
     * @throws \Illuminate\Session\TokenMismatchException
     */
    public function handle($request, Closure $next)
    {
        if (
            $this->isReading($request) ||
            $this->runningUnitTests() ||
            $this->inExceptArray($request) ||
            $this->tokensMatch($request)
        ) {
            return tap($next($request), function ($response) use ($request) {
                if ($this->shouldAddXsrfTokenCookie()) {
                    $this->addCookieToResponse($request, $response);
                }
            });
        }
 
        throw new TokenMismatchException('CSRF token mismatch.');
    }
 
    /**
     * Determine if the HTTP request uses a ‘read’ verb.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return bool
     */
    protected function isReading($request)
    {
        return in_array($request->method(), ['HEAD', 'GET', 'OPTIONS']);
    }
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$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->getContainer()->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];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        // If the current session has an "errors" variable bound to it, we will share
        // its value with all view instances so the views can easily access errors
        // without having to bind. An empty bag is set when there aren't errors.
        $this->view->share(
            'errors', $request->session()->get('errors') ?: new ViewErrorBag
        );
 
        // Putting the errors in the view for every view allows the developer to just
        // assume that some errors are always available, which is convenient since
        // they don't have to continually run checks for the presence of errors.
 
        return $next($request);
    }
}
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$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->getContainer()->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];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
    /**
     * Handle the given request within session state.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Contracts\Session\Session  $session
     * @param  \Closure  $next
     * @return mixed
     */
    protected function handleStatefulRequest(Request $request, $session, Closure $next)
    {
        // If a session driver has been configured, we will need to start the session here
        // so that the data is ready for an application. Note that the Laravel sessions
        // do not make use of PHP "native" sessions in any way since they are crappy.
        $request->setLaravelSession(
            $this->startSession($request, $session)
        );
 
        $this->collectGarbage($session);
 
        $response = $next($request);
 
        $this->storeCurrentUrl($request, $session);
 
        $this->addCookieToResponse($response, $session);
 
        // Again, if the session has been configured we will need to close out the session
        // so that the attributes may be persisted to some storage medium. We will also
        // add the session identifier cookie to the application response headers now.
        $this->saveSession($request);
 
        return $response;
    }
 
    /**
     * Start the session for the given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Contracts\Session\Session  $session
     * @return \Illuminate\Contracts\Session\Session
     */
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        if (! $this->sessionConfigured()) {
            return $next($request);
        }
 
        $session = $this->getSession($request);
 
        if ($this->manager->shouldBlock() ||
            ($request->route() && $request->route()->locksFor())) {
            return $this->handleRequestWhileBlocking($request, $session, $next);
        } else {
            return $this->handleStatefulRequest($request, $session, $next);
        }
    }
 
    /**
     * Handle the given request within session state.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Contracts\Session\Session  $session
     * @param  \Closure  $next
     * @return mixed
     */
    protected function handleRequestWhileBlocking(Request $request, $session, Closure $next)
    {
        $lockFor = $request->route() && $request->route()->locksFor()
                        ? $request->route()->locksFor()
                        : 10;
 
        $lock = $this->cache($this->manager->blockDriver())
                    ->lock('session:'.$session->getId(), $lockFor)
                    ->betweenBlockedAttemptsSleepFor(50);
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$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->getContainer()->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];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php
     * Create a new CookieQueue instance.
     *
     * @param  \Illuminate\Contracts\Cookie\QueueingFactory  $cookies
     * @return void
     */
    public function __construct(CookieJar $cookies)
    {
        $this->cookies = $cookies;
    }
 
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        $response = $next($request);
 
        foreach ($this->cookies->getQueuedCookies() as $cookie) {
            $response->headers->setCookie($cookie);
        }
 
        return $response;
    }
}
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$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->getContainer()->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];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php
     * Disable encryption for the given cookie name(s).
     *
     * @param  string|array  $name
     * @return void
     */
    public function disableFor($name)
    {
        $this->except = array_merge($this->except, (array) $name);
    }
 
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function handle($request, Closure $next)
    {
        return $this->encrypt($next($this->decrypt($request)));
    }
 
    /**
     * Decrypt the cookies on the request.
     *
     * @param  \Symfony\Component\HttpFoundation\Request  $request
     * @return \Symfony\Component\HttpFoundation\Request
     */
    protected function decrypt(Request $request)
    {
        foreach ($request->cookies as $key => $cookie) {
            if ($this->isDisabled($key)) {
                continue;
            }
 
            try {
                $value = $this->decryptCookie($key, $cookie);
 
                $hasValidPrefix = strpos($value, CookieValuePrefix::create($key, $this->encrypter->getKey())) === 0;
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$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->getContainer()->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];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
    public function via($method)
    {
        $this->method = $method;
 
        return $this;
    }
 
    /**
     * Run the pipeline with a final destination callback.
     *
     * @param  \Closure  $destination
     * @return mixed
     */
    public function then(Closure $destination)
    {
        $pipeline = array_reduce(
            array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
        );
 
        return $pipeline($this->passable);
    }
 
    /**
     * Run the pipeline and return the result.
     *
     * @return mixed
     */
    public function thenReturn()
    {
        return $this->then(function ($passable) {
            return $passable;
        });
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Router.php
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
                        ->then(function ($request) use ($route) {
                            return $this->prepareResponse(
                                $request, $route->run()
                            );
                        });
    }
 
    /**
     * Gather the middleware for the given route with resolved class names.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return array
     */
    public function gatherRouteMiddleware(Route $route)
    {
        $excluded = collect($route->excludedMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten()->values()->all();
 
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten()->reject(function ($name) use ($excluded) {
            return in_array($name, $excluded, true);
        })->values();
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Router.php
        return $route;
    }
 
    /**
     * Return the response for the given route.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Routing\Route  $route
     * @return \Symfony\Component\HttpFoundation\Response
     */
    protected function runRoute(Request $request, Route $route)
    {
        $request->setRouteResolver(function () use ($route) {
            return $route;
        });
 
        $this->events->dispatch(new RouteMatched($route, $request));
 
        return $this->prepareResponse($request,
            $this->runRouteWithinStack($route, $request)
        );
    }
 
    /**
     * Run the given route within a Stack "onion" instance.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Router.php
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function dispatch(Request $request)
    {
        $this->currentRequest = $request;
 
        return $this->dispatchToRoute($request);
    }
 
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function dispatchToRoute(Request $request)
    {
        return $this->runRoute($request, $this->findRoute($request));
    }
 
    /**
     * Find the route matching a given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Routing\Route
     */
    protected function findRoute($request)
    {
        $this->current = $route = $this->routes->match($request);
 
        $this->container->instance(Route::class, $route);
 
        return $route;
    }
 
    /**
     * Return the response for the given route.
     *
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Routing/Router.php
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function respondWithRoute($name)
    {
        $route = tap($this->routes->getByName($name))->bind($this->currentRequest);
 
        return $this->runRoute($this->currentRequest, $route);
    }
 
    /**
     * Dispatch the request to the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function dispatch(Request $request)
    {
        $this->currentRequest = $request;
 
        return $this->dispatchToRoute($request);
    }
 
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function dispatchToRoute(Request $request)
    {
        return $this->runRoute($request, $this->findRoute($request));
    }
 
    /**
     * Find the route matching a given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Routing\Route
     */
    protected function findRoute($request)
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
     * Get the route dispatcher callback.
     *
     * @return \Closure
     */
    protected function dispatchToRouter()
    {
        return function ($request) {
            $this->app->instance('request', $request);
 
            return $this->router->dispatch($request);
        };
    }
 
    /**
     * 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)
    {
        $this->terminateMiddleware($request, $response);
 
        $this->app->terminate();
    }
 
    /**
     * Call the terminate method on any terminable middleware.
     *
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
     * @return mixed
     */
    public function thenReturn()
    {
        return $this->then(function ($passable) {
            return $passable;
        });
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            try {
                return $destination($passable);
            } catch (Throwable $e) {
                return $this->handleException($passable, $e);
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    if (is_callable($pipe)) {
                        // If the pipe is a callable, then we will call it directly, but otherwise we
                        // will resolve the pipes out of the dependency container and call it with
                        // the appropriate method and arguments, returning the results back out.
/usr/www/users/typottg/matshop/vendor/fideloper/proxy/src/TrustProxies.php
    {
        $this->config = $config;
    }
 
    /**
     * Handle an incoming request.
     *
     * @param \Illuminate\Http\Request $request
     * @param \Closure                 $next
     *
     * @throws \Symfony\Component\HttpKernel\Exception\HttpException
     *
     * @return mixed
     */
    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
     *
     * @param \Illuminate\Http\Request $request
     */
    protected function setTrustedProxyIpAddresses(Request $request)
    {
        $trustedIps = $this->proxies ?: $this->config->get('trustedproxy.proxies');
 
        // Trust any IP address that calls us
        // `**` for backwards compatibility, but is deprecated
        if ($trustedIps === '*' || $trustedIps === '**') {
            return $this->setTrustedProxyIpAddressesToTheCallingIp($request);
        }
 
        // Support IPs addresses separated by comma
        $trustedIps = is_string($trustedIps) ? array_map('trim', explode(',', $trustedIps)) : $trustedIps;
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$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->getContainer()->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];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
 
namespace Illuminate\Foundation\Http\Middleware;
 
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
 
class TransformsRequest
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        $this->clean($request);
 
        return $next($request);
    }
 
    /**
     * Clean the request's data.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return void
     */
    protected function clean($request)
    {
        $this->cleanParameterBag($request->query);
 
        if ($request->isJson()) {
            $this->cleanParameterBag($request->json());
        } elseif ($request->request !== $request->query) {
            $this->cleanParameterBag($request->request);
        }
    }
 
    /**
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$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->getContainer()->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];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
 
namespace Illuminate\Foundation\Http\Middleware;
 
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
 
class TransformsRequest
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        $this->clean($request);
 
        return $next($request);
    }
 
    /**
     * Clean the request's data.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return void
     */
    protected function clean($request)
    {
        $this->cleanParameterBag($request->query);
 
        if ($request->isJson()) {
            $this->cleanParameterBag($request->json());
        } elseif ($request->request !== $request->query) {
            $this->cleanParameterBag($request->request);
        }
    }
 
    /**
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$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->getContainer()->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];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php
class ValidatePostSize
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     *
     * @throws \Illuminate\Http\Exceptions\PostTooLargeException
     */
    public function handle($request, Closure $next)
    {
        $max = $this->getPostMaxSize();
 
        if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
            throw new PostTooLargeException;
        }
 
        return $next($request);
    }
 
    /**
     * Determine the server 'post_max_size' as bytes.
     *
     * @return int
     */
    protected function getPostMaxSize()
    {
        if (is_numeric($postMaxSize = ini_get('post_max_size'))) {
            return (int) $postMaxSize;
        }
 
        $metric = strtoupper(substr($postMaxSize, -1));
        $postMaxSize = (int) $postMaxSize;
 
        switch ($metric) {
            case 'K':
                return $postMaxSize * 1024;
            case 'M':
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$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->getContainer()->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];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php
     * @throws \Symfony\Component\HttpKernel\Exception\HttpException
     * @throws \Illuminate\Foundation\Http\Exceptions\MaintenanceModeException
     */
    public function handle($request, Closure $next)
    {
        if ($this->app->isDownForMaintenance()) {
            $data = json_decode(file_get_contents($this->app->storagePath().'/framework/down'), true);
 
            if (isset($data['allowed']) && IpUtils::checkIp($request->ip(), (array) $data['allowed'])) {
                return $next($request);
            }
 
            if ($this->inExceptArray($request)) {
                return $next($request);
            }
 
            throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
        }
 
        return $next($request);
    }
 
    /**
     * Determine if the request has a URI that should be accessible in maintenance mode.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return bool
     */
    protected function inExceptArray($request)
    {
        foreach ($this->except as $except) {
            if ($except !== '/') {
                $except = trim($except, '/');
            }
 
            if ($request->fullUrlIs($except) || $request->is($except)) {
                return true;
            }
        }
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$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->getContainer()->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];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
    public function via($method)
    {
        $this->method = $method;
 
        return $this;
    }
 
    /**
     * Run the pipeline with a final destination callback.
     *
     * @param  \Closure  $destination
     * @return mixed
     */
    public function then(Closure $destination)
    {
        $pipeline = array_reduce(
            array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
        );
 
        return $pipeline($this->passable);
    }
 
    /**
     * Run the pipeline and return the result.
     *
     * @return mixed
     */
    public function thenReturn()
    {
        return $this->then(function ($passable) {
            return $passable;
        });
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
/usr/www/users/typottg/matshop/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());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
     * Get the route dispatcher callback.
     *
     * @return \Closure
     */
    protected function dispatchToRouter()
/usr/www/users/typottg/matshop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
    public function __construct(Application $app, Router $router)
    {
        $this->app = $app;
        $this->router = $router;
 
        $this->syncMiddlewareToRouter();
    }
 
    /**
     * 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 (Throwable $e) {
            $this->reportException($e);
 
            $response = $this->renderException($request, $e);
        }
 
        $this->app['events']->dispatch(
            new RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    protected function sendRequestThroughRouter($request)
/usr/www/users/typottg/matshop/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);
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
MAGICK_TEMPORARY_PATH
"/usr/home/typottg/.tmp"
TMPDIR
"/usr/home/typottg/.tmp"
PHP_FCGI_MAX_REQUESTS
"100000"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHPRC
"/home/httpd/php80-ini/typottg"
PWD
"/home/httpd/cgi-bin"
MAGICK_TMPDIR
"/usr/home/typottg/.tmp"
CONTENT_LENGTH
"0"
HTTP_CONNECTION
"close"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/kategoria/122432"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/2.0"
GATEWAY_INTERFACE
"CGI/1.1"
SSL_TLS_SNI
"matshop.sk"
HTTPS
"on"
H2_STREAM_TAG
"43884-3850-3"
H2_STREAM_ID
"3"
H2_PUSHED_ON
""
H2_PUSHED
""
H2_PUSH
"off"
H2PUSH
"off"
HTTP2
"on"
GEOIP_COUNTRY_NAME
"United States"
GEOIP_COUNTRY_CODE
"US"
GEOIP_CONTINENT_CODE
"NA"
GEOIP_ADDR
"23.20.220.59"
REDIRECT_URL
"/kategoria/122432"
REMOTE_PORT
"46030"
SCRIPT_FILENAME
"/usr/www/users/typottg/matshop/public/index.php"
SERVER_ADMIN
"webmaster@matshop.sk"
CONTEXT_DOCUMENT_ROOT
"/usr/www/users/typottg/matshop/public"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/usr/www/users/typottg/matshop/public"
REMOTE_ADDR
"23.20.220.59"
SERVER_PORT
"443"
SERVER_ADDR
"78.46.157.210"
SERVER_NAME
"matshop.sk"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
"<address>Apache Server at matshop.sk Port 443</address>\n"
HTTP_HOST
"matshop.sk"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"matshop.sk"
REDIRECT_HTTPS
"on"
REDIRECT_H2_STREAM_TAG
"43884-3850-3"
REDIRECT_H2_STREAM_ID
"3"
REDIRECT_H2_PUSHED_ON
""
REDIRECT_H2_PUSHED
""
REDIRECT_H2_PUSH
"off"
REDIRECT_H2PUSH
"off"
REDIRECT_HTTP2
"on"
REDIRECT_GEOIP_COUNTRY_NAME
"United States"
REDIRECT_GEOIP_COUNTRY_CODE
"US"
REDIRECT_GEOIP_CONTINENT_CODE
"NA"
REDIRECT_GEOIP_ADDR
"23.20.220.59"
REDIRECT_REMOTE_PORT
"46030"
REDIRECT_SCRIPT_FILENAME
"/usr/www/users/typottg/matshop/public/kategoria"
REDIRECT_SERVER_ADMIN
"webmaster@matshop.sk"
REDIRECT_CONTEXT_DOCUMENT_ROOT
"/usr/www/users/typottg/matshop/public"
REDIRECT_CONTEXT_PREFIX
""
REDIRECT_REQUEST_SCHEME
"https"
REDIRECT_DOCUMENT_ROOT
"/usr/www/users/typottg/matshop/public"
REDIRECT_REMOTE_ADDR
"23.20.220.59"
REDIRECT_SERVER_PORT
"443"
REDIRECT_SERVER_ADDR
"78.46.157.210"
REDIRECT_SERVER_NAME
"matshop.sk"
REDIRECT_SERVER_SOFTWARE
"Apache"
REDIRECT_SERVER_SIGNATURE
"<address>Apache Server at matshop.sk Port 443</address>\n"
REDIRECT_PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
REDIRECT_HTTP_HOST
"matshop.sk"
REDIRECT_HTTP_USER_AGENT
"claudebot"
REDIRECT_HTTP_ACCEPT
"*/*"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1710819122.7752
REQUEST_TIME
1710819122
argv
[]
argc
0
APP_NAME
"Matshop"
APP_ENV
"production"
APP_KEY
"base64:LvoKjDGHycYFfn0AdSkm5t+IcOEyMddwTDaFm5oBqDM="
APP_DEBUG
"false"
APP_URL
"http://www.matshop.sk"
LOG_CHANNEL
"stack"
DB_CONNECTION
"mysql"
DB_HOST
"sql635.your-server.de"
DB_PORT
"3306"
DB_DATABASE
"typottg_matsh"
DB_USERNAME
"typottg_matsh"
DB_PASSWORD
"hLYS6CUU7RYR3BiF"
BROADCAST_DRIVER
"log"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
QUEUE_DRIVER
"sync"
MAIL_DRIVER
"smtp"
MAIL_HOST
"mail.your-server.de"
MAIL_PORT
"587"
MAIL_USERNAME
"info@matshop.sk"
MAIL_PASSWORD
"i77zW53GStu8kIUw"
MAIL_ENCRYPTION
"tls"
MAIL_FROM_NAME
"Obchod Matshop.sk"
MAIL_FROM_EMAIL
"info@matshop.sk"
MAIL_FROM_ADDRESS
"info@matshop.sk"
GMAIL_DRIVER
"smtp"
GMAIL_HOST
"smtp.gmail.com"
GMAIL_PORT
"587"
GMAIL_USERNAME
"matshopsk@gmail.com"
GMAIL_PASSWORD
"12012011matshop"
GMAIL_ENCRYPTION
"tls"
GMAIL_FROM_NAME
"Obchod Matshop.sk"
GMAIL_FROM_EMAIL
"matshopsk@gmail.com"
GMAIL_FROM_ADDRESS
"matshopsk@gmail.com"
MAIL2_DRIVER
"smtp"
MAIL2_HOST
"mail.your-server.de"
MAIL2_PORT
"587"
MAIL2_USERNAME
"info@matshop-zamowienia.pl"
MAIL2_PASSWORD
"1B0FPdB87YX1EVxq"
MAIL2_ENCRYPTION
"tls"
MAIL2_FROM_NAME
"Obchod Matshop.sk"
MAIL2_FROM_EMAIL
"info@matshop-zamowienia.pl"
MAIL2_FROM_ADDRESS
"info@matshop-zamowienia.pl"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
GEOIP_DRIVER
"ipstack"
GEOIP_IPSTACK_KEY
"d167fabd626ccbc05b770cd66e516ceb"
GEOIP_MAXMIND_USER_ID
"140732"
GEOIP_MAXMIND_LICENSE_KEY
"THr6cCAtb53s"
Key Value
MAGICK_TEMPORARY_PATH
"/usr/home/typottg/.tmp"
TMPDIR
"/usr/home/typottg/.tmp"
PHP_FCGI_MAX_REQUESTS
"100000"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHPRC
"/home/httpd/php80-ini/typottg"
PWD
"/home/httpd/cgi-bin"
MAGICK_TMPDIR
"/usr/home/typottg/.tmp"
CONTENT_LENGTH
"0"
HTTP_CONNECTION
"close"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/kategoria/122432"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/2.0"
GATEWAY_INTERFACE
"CGI/1.1"
SSL_TLS_SNI
"matshop.sk"
HTTPS
"on"
H2_STREAM_TAG
"43884-3850-3"
H2_STREAM_ID
"3"
H2_PUSHED_ON
""
H2_PUSHED
""
H2_PUSH
"off"
H2PUSH
"off"
HTTP2
"on"
GEOIP_COUNTRY_NAME
"United States"
GEOIP_COUNTRY_CODE
"US"
GEOIP_CONTINENT_CODE
"NA"
GEOIP_ADDR
"23.20.220.59"
REDIRECT_URL
"/kategoria/122432"
REMOTE_PORT
"46030"
SCRIPT_FILENAME
"/usr/www/users/typottg/matshop/public/index.php"
SERVER_ADMIN
"webmaster@matshop.sk"
CONTEXT_DOCUMENT_ROOT
"/usr/www/users/typottg/matshop/public"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/usr/www/users/typottg/matshop/public"
REMOTE_ADDR
"23.20.220.59"
SERVER_PORT
"443"
SERVER_ADDR
"78.46.157.210"
SERVER_NAME
"matshop.sk"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
"<address>Apache Server at matshop.sk Port 443</address>\n"
HTTP_HOST
"matshop.sk"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"matshop.sk"
REDIRECT_HTTPS
"on"
REDIRECT_H2_STREAM_TAG
"43884-3850-3"
REDIRECT_H2_STREAM_ID
"3"
REDIRECT_H2_PUSHED_ON
""
REDIRECT_H2_PUSHED
""
REDIRECT_H2_PUSH
"off"
REDIRECT_H2PUSH
"off"
REDIRECT_HTTP2
"on"
REDIRECT_GEOIP_COUNTRY_NAME
"United States"
REDIRECT_GEOIP_COUNTRY_CODE
"US"
REDIRECT_GEOIP_CONTINENT_CODE
"NA"
REDIRECT_GEOIP_ADDR
"23.20.220.59"
REDIRECT_REMOTE_PORT
"46030"
REDIRECT_SCRIPT_FILENAME
"/usr/www/users/typottg/matshop/public/kategoria"
REDIRECT_SERVER_ADMIN
"webmaster@matshop.sk"
REDIRECT_CONTEXT_DOCUMENT_ROOT
"/usr/www/users/typottg/matshop/public"
REDIRECT_CONTEXT_PREFIX
""
REDIRECT_REQUEST_SCHEME
"https"
REDIRECT_DOCUMENT_ROOT
"/usr/www/users/typottg/matshop/public"
REDIRECT_REMOTE_ADDR
"23.20.220.59"
REDIRECT_SERVER_PORT
"443"
REDIRECT_SERVER_ADDR
"78.46.157.210"
REDIRECT_SERVER_NAME
"matshop.sk"
REDIRECT_SERVER_SOFTWARE
"Apache"
REDIRECT_SERVER_SIGNATURE
"<address>Apache Server at matshop.sk Port 443</address>\n"
REDIRECT_PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
REDIRECT_HTTP_HOST
"matshop.sk"
REDIRECT_HTTP_USER_AGENT
"claudebot"
REDIRECT_HTTP_ACCEPT
"*/*"
FCGI_ROLE
"RESPONDER"
APP_NAME
"Matshop"
APP_ENV
"production"
APP_KEY
"base64:LvoKjDGHycYFfn0AdSkm5t+IcOEyMddwTDaFm5oBqDM="
APP_DEBUG
"false"
APP_URL
"http://www.matshop.sk"
LOG_CHANNEL
"stack"
DB_CONNECTION
"mysql"
DB_HOST
"sql635.your-server.de"
DB_PORT
"3306"
DB_DATABASE
"typottg_matsh"
DB_USERNAME
"typottg_matsh"
DB_PASSWORD
"hLYS6CUU7RYR3BiF"
BROADCAST_DRIVER
"log"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
QUEUE_DRIVER
"sync"
MAIL_DRIVER
"smtp"
MAIL_HOST
"mail.your-server.de"
MAIL_PORT
"587"
MAIL_USERNAME
"info@matshop.sk"
MAIL_PASSWORD
"i77zW53GStu8kIUw"
MAIL_ENCRYPTION
"tls"
MAIL_FROM_NAME
"Obchod Matshop.sk"
MAIL_FROM_EMAIL
"info@matshop.sk"
MAIL_FROM_ADDRESS
"info@matshop.sk"
GMAIL_DRIVER
"smtp"
GMAIL_HOST
"smtp.gmail.com"
GMAIL_PORT
"587"
GMAIL_USERNAME
"matshopsk@gmail.com"
GMAIL_PASSWORD
"12012011matshop"
GMAIL_ENCRYPTION
"tls"
GMAIL_FROM_NAME
"Obchod Matshop.sk"
GMAIL_FROM_EMAIL
"matshopsk@gmail.com"
GMAIL_FROM_ADDRESS
"matshopsk@gmail.com"
MAIL2_DRIVER
"smtp"
MAIL2_HOST
"mail.your-server.de"
MAIL2_PORT
"587"
MAIL2_USERNAME
"info@matshop-zamowienia.pl"
MAIL2_PASSWORD
"1B0FPdB87YX1EVxq"
MAIL2_ENCRYPTION
"tls"
MAIL2_FROM_NAME
"Obchod Matshop.sk"
MAIL2_FROM_EMAIL
"info@matshop-zamowienia.pl"
MAIL2_FROM_ADDRESS
"info@matshop-zamowienia.pl"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
GEOIP_DRIVER
"ipstack"
GEOIP_IPSTACK_KEY
"d167fabd626ccbc05b770cd66e516ceb"
GEOIP_MAXMIND_USER_ID
"140732"
GEOIP_MAXMIND_LICENSE_KEY
"THr6cCAtb53s"
0. Whoops\Handler\PrettyPageHandler