BadMethodCallException
Call to undefined method Watson\Rememberable\Query\Builder::getWebsiteCategory() BadMethodCallException thrown with message "Call to undefined method Watson\Rememberable\Query\Builder::getWebsiteCategory()" Stacktrace: #61 BadMethodCallException in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2451 #60 Illuminate\Database\Query\Builder:__call in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:1254 #59 Illuminate\Database\Eloquent\Builder:__call in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1372 #58 Illuminate\Database\Eloquent\Model:__call in /home/chris/domains/bewinkel.nl/laravel/app/Http/Controllers/SitemapController.php:166 #57 App\Http\Controllers\SitemapController:index in /home/chris/domains/bewinkel.nl/laravel/app/Http/Controllers/RouteController.php:36 #56 App\Http\Controllers\RouteController:index in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:55 #55 call_user_func_array in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:55 #54 Illuminate\Routing\Controller:callAction in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:44 #53 Illuminate\Routing\ControllerDispatcher:dispatch in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Route.php:203 #52 Illuminate\Routing\Route:runController in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Route.php:160 #51 Illuminate\Routing\Route:run in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php:574 #50 Illuminate\Routing\Router:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 #49 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/app/Http/Middleware/BeforeMiddleware.php:40 #48 App\Http\Middleware\AfterMiddleware:handle in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 #47 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #46 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/app/Http/Middleware/BeforeMiddleware.php:32 #45 App\Http\Middleware\BeforeMiddleware:handle in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 #44 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #43 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102 #42 Illuminate\Pipeline\Pipeline:then in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php:576 #41 Illuminate\Routing\Router:runRouteWithinStack in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php:535 #40 Illuminate\Routing\Router:dispatchToRoute in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php:513 #39 Illuminate\Routing\Router:dispatch in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 #38 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 #37 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/app/lib/Roeland/Ab/AbMiddleware.php:25 #36 Roeland\Ab\AbMiddleware:handle in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 #35 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #34 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/app/Http/Middleware/UserLocationMiddleware.php:58 #33 App\Http\Middleware\UserLocationMiddleware:handle in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 #32 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #31 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/app/Http/Middleware/StatsMiddleware.php:99 #30 App\Http\Middleware\StatsMiddleware:handle in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 #29 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #28 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/app/Http/Middleware/MultiLangMiddleware.php:47 #27 App\Http\Middleware\MultiLangMiddleware:handle in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 #26 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #25 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:65 #24 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in /home/chris/domains/bewinkel.nl/laravel/app/Http/Middleware/VerifyCsrfToken.php:31 #23 App\Http\Middleware\VerifyCsrfToken:handle in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 #22 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #21 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 #20 Illuminate\View\Middleware\ShareErrorsFromSession:handle in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 #19 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #18 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64 #17 Illuminate\Session\Middleware\StartSession:handle in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 #16 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #15 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 #14 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 #13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #12 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:59 #11 Illuminate\Cookie\Middleware\EncryptCookies:handle in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 #10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #9 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:46 #8 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 #7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #6 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/app/Http/Middleware/PhpUnitMiddleware.php:38 #5 App\Http\Middleware\PhpUnitMiddleware:handle in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 #4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #3 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102 #2 Illuminate\Pipeline\Pipeline:then in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 #1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /home/chris/domains/bewinkel.nl/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 #0 Illuminate\Foundation\Http\Kernel:handle in /home/chris/domains/bewinkel.nl/public_html/index.php:59
Stack frames (62)
61
BadMethodCallException
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2451
60
Illuminate
\
Database
\
Query
\
Builder
__call
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
1254
59
Illuminate
\
Database
\
Eloquent
\
Builder
__call
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Model.php
1372
58
Illuminate
\
Database
\
Eloquent
\
Model
__call
/
app
/
Http
/
Controllers
/
SitemapController.php
166
57
App
\
Http
\
Controllers
\
SitemapController
index
/
app
/
Http
/
Controllers
/
RouteController.php
36
56
App
\
Http
\
Controllers
\
RouteController
index
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Controller.php
55
55
call_user_func_array
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Controller.php
55
54
Illuminate
\
Routing
\
Controller
callAction
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
ControllerDispatcher.php
44
53
Illuminate
\
Routing
\
ControllerDispatcher
dispatch
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Route.php
203
52
Illuminate
\
Routing
\
Route
runController
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Route.php
160
51
Illuminate
\
Routing
\
Route
run
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Router.php
574
50
Illuminate
\
Routing
\
Router
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
30
49
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
app
/
Http
/
Middleware
/
BeforeMiddleware.php
40
48
App
\
Http
\
Middleware
\
AfterMiddleware
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
148
47
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
46
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
app
/
Http
/
Middleware
/
BeforeMiddleware.php
32
45
App
\
Http
\
Middleware
\
BeforeMiddleware
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
148
44
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
43
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
102
42
Illuminate
\
Pipeline
\
Pipeline
then
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Router.php
576
41
Illuminate
\
Routing
\
Router
runRouteWithinStack
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Router.php
535
40
Illuminate
\
Routing
\
Router
dispatchToRoute
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Router.php
513
39
Illuminate
\
Routing
\
Router
dispatch
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
176
38
Illuminate
\
Foundation
\
Http
\
Kernel
Illuminate
\
Foundation
\
Http
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
30
37
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
app
/
lib
/
Roeland
/
Ab
/
AbMiddleware.php
25
36
Roeland
\
Ab
\
AbMiddleware
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
148
35
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
34
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
app
/
Http
/
Middleware
/
UserLocationMiddleware.php
58
33
App
\
Http
\
Middleware
\
UserLocationMiddleware
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
148
32
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
31
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
app
/
Http
/
Middleware
/
StatsMiddleware.php
99
30
App
\
Http
\
Middleware
\
StatsMiddleware
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
148
29
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
28
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
app
/
Http
/
Middleware
/
MultiLangMiddleware.php
47
27
App
\
Http
\
Middleware
\
MultiLangMiddleware
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
148
26
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
25
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Middleware
/
VerifyCsrfToken.php
65
24
Illuminate
\
Foundation
\
Http
\
Middleware
\
VerifyCsrfToken
handle
/
app
/
Http
/
Middleware
/
VerifyCsrfToken.php
31
23
App
\
Http
\
Middleware
\
VerifyCsrfToken
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
148
22
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
21
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
View
/
Middleware
/
ShareErrorsFromSession.php
49
20
Illuminate
\
View
\
Middleware
\
ShareErrorsFromSession
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
148
19
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
18
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Session
/
Middleware
/
StartSession.php
64
17
Illuminate
\
Session
\
Middleware
\
StartSession
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
148
16
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
15
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Cookie
/
Middleware
/
AddQueuedCookiesToResponse.php
37
14
Illuminate
\
Cookie
\
Middleware
\
AddQueuedCookiesToResponse
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
148
13
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
12
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Cookie
/
Middleware
/
EncryptCookies.php
59
11
Illuminate
\
Cookie
\
Middleware
\
EncryptCookies
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
148
10
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
9
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Middleware
/
CheckForMaintenanceMode.php
46
8
Illuminate
\
Foundation
\
Http
\
Middleware
\
CheckForMaintenanceMode
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
148
7
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
6
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
app
/
Http
/
Middleware
/
PhpUnitMiddleware.php
38
5
App
\
Http
\
Middleware
\
PhpUnitMiddleware
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
148
4
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
3
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
102
2
Illuminate
\
Pipeline
\
Pipeline
then
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
151
1
Illuminate
\
Foundation
\
Http
\
Kernel
sendRequestThroughRouter
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
116
0
Illuminate
\
Foundation
\
Http
\
Kernel
handle
/
home
/
chris
/
domains
/
bewinkel.nl
/
public_html
/
index.php
59
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    public function __call($method, $parameters)
    {
        if (static::hasMacro($method)) {
            return $this->macroCall($method, $parameters);
        }
 
        if (Str::startsWith($method, 'where')) {
            return $this->dynamicWhere($method, $parameters);
        }
 
        $className = static::class;
 
        throw new BadMethodCallException("Call to undefined method {$className}::{$method}()");
    }
}
 
Arguments
  1. "Call to undefined method Watson\Rememberable\Query\Builder::getWebsiteCategory()"
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
            return $this->localMacros[$method](...$parameters);
        }
 
        if (isset(static::$macros[$method]) and static::$macros[$method] instanceof Closure) {
            return call_user_func_array(static::$macros[$method]->bindTo($this, static::class), $parameters);
        }
 
        if (isset(static::$macros[$method])) {
            return call_user_func_array(static::$macros[$method]->bindTo($this, static::class), $parameters);
        }
 
        if (method_exists($this->model, $scope = 'scope'.ucfirst($method))) {
            return $this->callScope([$this->model, $scope], $parameters);
        }
 
        if (in_array($method, $this->passthru)) {
            return $this->toBase()->{$method}(...$parameters);
        }
 
        $this->query->{$method}(...$parameters);
 
        return $this;
    }
 
    /**
     * Dynamically handle calls into the query instance.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    public static function __callStatic($method, $parameters)
    {
        if ($method === 'macro') {
            static::$macros[$parameters[0]] = $parameters[1];
 
            return;
        }
Arguments
  1. "getWebsiteCategory"
    
  2. array:1 [
      0 => "grouped"
    ]
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Model.php
     */
    public function __unset($key)
    {
        unset($this->attributes[$key], $this->relations[$key]);
    }
 
    /**
     * Handle dynamic method calls into the model.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     */
    public function __call($method, $parameters)
    {
        if (in_array($method, ['increment', 'decrement'])) {
            return $this->$method(...$parameters);
        }
 
        return $this->newQuery()->$method(...$parameters);
    }
 
    /**
     * Handle dynamic static method calls into the method.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     */
    public static function __callStatic($method, $parameters)
    {
        return (new static)->$method(...$parameters);
    }
 
    /**
     * Convert the model to its string representation.
     *
     * @return string
     */
    public function __toString()
Arguments
  1. "getWebsiteCategory"
    
  2. array:1 [
      0 => "grouped"
    ]
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
app
/
Http
/
Controllers
/
SitemapController.php
            $a .= "<changefreq>weekly</changefreq>";
            $a .= "<priority>0.6</priority>";
            $a .= "</url>";
        }
 
        $a .= "</urlset>";
 
        return \Response::make($a)->header('Content-Type', 'text/xml;charset=utf-8');
    }
 
    public function index()
    {
        $website = Website::current();
        $view = view("cms_page." . $website->theme->folder . ".sitemap.index");
        $view->website = Website::current();
        $view->pages = UrlMenu::where("website_id", $view->website->id)->get();
        $view->categories = $website->getSiteMapCategories();
 
        if($website->theme->folder == "theme_bewinkel"){
            $view->website_category_grouped = $website->getWebsiteCategory('grouped'); // todo verplaatsen/weghalen
            $view->website_group_names = $this->website->website_category_group->getDictionary();
        }
 
        $url = UrlMenu::findUrl();
        $url = UrlMenu::find($url['url_id']);
        $view->url = $url->fullurl;
 
        return $view;
    }
 
    public function show($category_url, $category_url2 = '', $category_url3 = '')
    {
        if($category_url3 != ''){
            $category_url = $category_url2.'/'.$category_url3;
        } elseif($category_url2 != ''){
            $category_url = $category_url2;
        }
        $website = Website::current();
        if ($website->theme->folder == "theme_bewinkel") {
            \App::abort(404);
Arguments
  1. "getWebsiteCategory"
    
  2. array:1 [
      0 => "grouped"
    ]
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
app
/
Http
/
Controllers
/
RouteController.php
        Debugbar::startMeasure('RouteController', 'RouteController');
        $url = UrlMenu::findUrl();
 
        if (isset($url['url_id'])) {
 
            if ($url['type'] == "page") {
                //gaat door naar de pagina controller
                Debugbar::stopMeasure('RouteController');
                return app('\App\Http\Controllers\PagesController')->index($url['page_id']);
            }
            if ($url['type'] == "controller") {
                //als er een tweede gedeelte in de url is gaat ie naar de show functie ipv index
                Debugbar::stopMeasure('RouteController');
 
                $url_without_parameters = $url['str'];
                if(str_contains($url['str'],'?')) {
                    $url_without_parameters = substr($url['str'], 0, strpos($url['str'], "?"));
                }
                if (str_replace("\\", "", $url_without_parameters) == str_replace("\\", "", trim($url['url'], ".*"))) {
                    return App::make($url['controller'])->index($url_part_1, $url_part_2, $url_part_3, $url_part_4, $url_part_5);
                }
 
                return App::make($url['controller'])->show($url_part_1, $url_part_2, $url_part_3, $url_part_4, $url_part_5);
            }
        }
 
        $website = Website::current();
        $product_controller = ProductController::class;
 
        // uncomment line for the test product controller
        //$product_controller = ProductViewModelController::class;
 
        // check op alternatief categorie systeem
        // thema lars url systeem
 
        if ($website->theme->url_type == 1 || $website->theme->folder == "theme_bewinkel") {
 
            $last_url_part = "";
            if ($url_part_1 != "") {
                $last_url_part = $url_part_1;
Arguments
  1. "sitemap"
    
  2. ""
    
  3. ""
    
  4. ""
    
  5. ""
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Controller.php
    /**
     * Get the middleware assigned to the controller.
     *
     * @return array
     */
    public function getMiddleware()
    {
        return $this->middleware;
    }
 
    /**
     * Execute an action on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function callAction($method, $parameters)
    {
        return call_user_func_array([$this, $method], $parameters);
    }
 
    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  array   $parameters
     * @return mixed
     *
     * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
     */
    public function missingMethod($parameters = [])
    {
        throw new NotFoundHttpException('Controller method not found.');
    }
 
    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
Arguments
  1. "sitemap"
    
  2. ""
    
  3. ""
    
  4. ""
    
  5. ""
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Controller.php
    /**
     * Get the middleware assigned to the controller.
     *
     * @return array
     */
    public function getMiddleware()
    {
        return $this->middleware;
    }
 
    /**
     * Execute an action on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function callAction($method, $parameters)
    {
        return call_user_func_array([$this, $method], $parameters);
    }
 
    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  array   $parameters
     * @return mixed
     *
     * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
     */
    public function missingMethod($parameters = [])
    {
        throw new NotFoundHttpException('Controller method not found.');
    }
 
    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
Arguments
  1. array:2 [
      0 => RouteController {#6746}
      1 => "index"
    ]
    
  2. array:5 [
      "url" => "sitemap"
      0 => ""
      1 => ""
      2 => ""
      3 => ""
    ]
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
ControllerDispatcher.php
    {
        $this->container = $container;
    }
 
    /**
     * Dispatch a request to a given controller and method.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  mixed  $controller
     * @param  string  $method
     * @return mixed
     */
    public function dispatch(Route $route, $controller, $method)
    {
        $parameters = $this->resolveClassMethodDependencies(
            $route->parametersWithoutNulls(), $controller, $method
        );
 
        if (method_exists($controller, 'callAction')) {
            return $controller->callAction($method, $parameters);
        }
 
        return $controller->{$method}(...array_values($parameters));
    }
 
    /**
     * Get the middleware for the controller instance.
     *
     * @param  \Illuminate\Routing\Controller  $controller
     * @param  string  $method
     * @return array
     */
    public static function getMiddleware($controller, $method)
    {
        if (! method_exists($controller, 'getMiddleware')) {
            return [];
        }
 
        return collect($controller->getMiddleware())->reject(function ($data) use ($method) {
            return static::methodExcludedByOptions($method, $data['options']);
Arguments
  1. "index"
    
  2. array:5 [
      "url" => "sitemap"
      0 => ""
      1 => ""
      2 => ""
      3 => ""
    ]
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Route.php
    protected function runCallable()
    {
        $callable = $this->action['uses'];
 
        return $callable(...array_values($this->resolveMethodDependencies(
            $this->parametersWithoutNulls(), new ReflectionFunction($this->action['uses'])
        )));
    }
 
    /**
     * Run the route action and return the response.
     *
     * @return mixed
     *
     * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
     */
    protected function runController()
    {
        return (new ControllerDispatcher($this->container))->dispatch(
            $this, $this->getController(), $this->getControllerMethod()
        );
    }
 
    /**
     * Get the controller instance for the route.
     *
     * @return mixed
     */
    public function getController()
    {
        $class = $this->parseControllerCallback()[0];
 
        if (! $this->controller) {
            $this->controller = $this->container->make($class);
        }
 
        return $this->controller;
    }
 
    /**
Arguments
  1. Route {#838}
    
  2. RouteController {#6746}
    
  3. "index"
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Route.php
     *
     * @throws \UnexpectedValueException
     */
    protected function parseAction($action)
    {
        return RouteAction::parse($this->uri, $action);
    }
 
    /**
     * Run the route action and return the response.
     *
     * @return mixed
     */
    public function run()
    {
        $this->container = $this->container ?: new Container;
 
        try {
            if ($this->isControllerAction()) {
                return $this->runController();
            }
 
            return $this->runCallable();
        } catch (HttpResponseException $e) {
            return $e->getResponse();
        }
    }
 
    /**
     * Checks whether the route's action is a controller.
     *
     * @return bool
     */
    protected function isControllerAction()
    {
        return is_string($this->action['uses']);
    }
 
    /**
     * Run the route action and return the response.
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
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)
    {
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten();
 
        return $this->sortMiddleware($middleware);
    }
 
    /**
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
 
/**
 * This extended pipeline catches any exceptions that occur during each slice.
 *
 * The exceptions are converted to HTTP responses for proper middleware handling.
 */
class Pipeline extends BasePipeline
{
    /**
     * Get 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 (Exception $e) {
                return $this->handleException($passable, $e);
            } catch (Throwable $e) {
                return $this->handleException($passable, new FatalThrowableError($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 {
                    $slice = parent::carry();
 
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
app
/
Http
/
Middleware
/
BeforeMiddleware.php
            return \Redirect::to($secure_url, 301);
        }
 
        if(isset($domain->under_construction->active) && $domain->under_construction->active == 1 && !\Auth::check()){
            return view('layouts.underconstruction')->with('website', $domain->under_construction);
        }
 
        $redirect = Redirect::checkForRedirects();
        if($redirect != null){
            return $redirect;
        }
        return $next($request);
    }
}
 
class AfterMiddleware
{
    public function handle($request, Closure $next)
    {
        return $next($request);
    }
}
 
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
                    // otherwise we'll resolve the pipes out of the container and call it with
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    list($name, $parameters) = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->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];
                }
 
                return $pipe->{$this->method}(...$parameters);
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
            $parameters = explode(',', $parameters);
        }
 
        return [$name, $parameters];
    }
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure {#6416
      class: "Illuminate\Routing\Pipeline"
      this: Pipeline {#6747 …}
      parameters: {
        $passable: {}
      }
      use: {
        $destination: Closure {#6417 …}
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($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 {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
app
/
Http
/
Middleware
/
BeforeMiddleware.php
class BeforeMiddleware
{
 
    public function handle($request, Closure $next)
    {
        $domain = Domain::current();
        $secure_url = $domain->getSecureUrl($request->url());
        if(!in_array(config('app.env'), ['local', 'testing']) && $secure_url != $request->url()){
            return \Redirect::to($secure_url, 301);
        }
 
        if(isset($domain->under_construction->active) && $domain->under_construction->active == 1 && !\Auth::check()){
            return view('layouts.underconstruction')->with('website', $domain->under_construction);
        }
 
        $redirect = Redirect::checkForRedirects();
        if($redirect != null){
            return $redirect;
        }
        return $next($request);
    }
}
 
class AfterMiddleware
{
    public function handle($request, Closure $next)
    {
        return $next($request);
    }
}
 
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
                    // otherwise we'll resolve the pipes out of the container and call it with
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    list($name, $parameters) = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->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];
                }
 
                return $pipe->{$this->method}(...$parameters);
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
            $parameters = explode(',', $parameters);
        }
 
        return [$name, $parameters];
    }
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure {#6414
      class: "Illuminate\Routing\Pipeline"
      this: Pipeline {#6747 …}
      parameters: {
        $passable: {}
      }
      use: {
        $stack: Closure {#6416 …}
        $pipe: "App\Http\Middleware\AfterMiddleware"
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($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 {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
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);
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            return $destination($passable);
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
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)
    {
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten();
 
        return $this->sortMiddleware($middleware);
    }
 
    /**
     * Sort the given middleware by priority.
     *
Arguments
  1. Closure {#6417
      class: "Illuminate\Routing\Router"
      this: Router {#22 …}
      parameters: {
        $request: {}
      }
      use: {
        $route: Route {#838 …}
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Router.php
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    public function dispatchToRoute(Request $request)
    {
        // First we will find a route that matches this request. We will also set the
        // route resolver on the request so middlewares assigned to the route will
        // receive access to this route instance for checking of the parameters.
        $route = $this->findRoute($request);
 
        $request->setRouteResolver(function () use ($route) {
            return $route;
        });
 
        $this->events->dispatch(new Events\RouteMatched($route, $request));
 
        $response = $this->runRouteWithinStack($route, $request);
 
        return $this->prepareResponse($request, $response);
    }
 
    /**
     * 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;
    }
 
    /**
Arguments
  1. Route {#838}
    
  2. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Router.php
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return void
     */
    protected function mergeGroupAttributesIntoRoute($route)
    {
        $route->setAction($this->mergeWithLastGroup($route->getAction()));
    }
 
    /**
     * Dispatch the request to the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\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 mixed
     */
    public function dispatchToRoute(Request $request)
    {
        // First we will find a route that matches this request. We will also set the
        // route resolver on the request so middlewares assigned to the route will
        // receive access to this route instance for checking of the parameters.
        $route = $this->findRoute($request);
 
        $request->setRouteResolver(function () use ($route) {
            return $route;
        });
 
        $this->events->dispatch(new Events\RouteMatched($route, $request));
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
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.
     *
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
 
/**
 * This extended pipeline catches any exceptions that occur during each slice.
 *
 * The exceptions are converted to HTTP responses for proper middleware handling.
 */
class Pipeline extends BasePipeline
{
    /**
     * Get 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 (Exception $e) {
                return $this->handleException($passable, $e);
            } catch (Throwable $e) {
                return $this->handleException($passable, new FatalThrowableError($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 {
                    $slice = parent::carry();
 
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
app
/
lib
/
Roeland
/
Ab
/
AbMiddleware.php
 
use Closure;
use Cookie;
use Illuminate\Http\Request;
use Roeland\Ab\Models\AbGoal;
use Session;
 
class AbMiddleware
{
 
    /**
     * Handle an incoming request.
     *
     * @param  Request  $request
     * @param  Closure  $next
     * @return mixed
     */
    public function handle(Request $request, Closure $next)
    {
        $response = $next($request);
        if (method_exists($response, 'withCookie')) {
            return $response->withCookie(
                Cookie::forever(
                    'ab_cookie',
                    Session::get('ab_cookie')
                )
            );
        }
 
        return $response;
 
    }
 
    public function terminate($request, $response)
    {
        AbGoal::flushGoals();
    }
 
}
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
                    // otherwise we'll resolve the pipes out of the container and call it with
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    list($name, $parameters) = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->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];
                }
 
                return $pipe->{$this->method}(...$parameters);
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
            $parameters = explode(',', $parameters);
        }
 
        return [$name, $parameters];
    }
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure {#880
      class: "Illuminate\Routing\Pipeline"
      this: Pipeline {#36 …}
      parameters: {
        $passable: {}
      }
      use: {
        $destination: Closure {#38 …}
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($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 {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
app
/
Http
/
Middleware
/
UserLocationMiddleware.php
    public function handle(Request $request, Closure $next)
    {
        // set the default user location id to fix errors by the 404 page
        View::share('user_location_id', 0);
 
        // check if user is signed in
        $validationBool = $this->validateRequest($request);
        if($validationBool){
            $location = UserLocation::create([
                'user_id' => Auth::id(),
                'website_id' => Website::id(),
                'route_name' => $request->getRequestUri(),
                'route_parameters' => '[]',
                'country_code' => App::getLocale(),
            ]);
            View::share('user_location_id', $location->id);
        }
 
        // get response
        $response = $next($request);
 
        // update row with route parameters
        if($validationBool){
            $current = Route::current();
            $routeName = $current->getName();
            if(is_null($routeName)){
                $routeName = $request->getRequestUri();
            }
            $location->route_name = $routeName;
            $location->route_parameters = json_encode($current->parameters());
            $location->save();
        }
 
        // return response
        return $response;
    }
}
 
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
                    // otherwise we'll resolve the pipes out of the container and call it with
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    list($name, $parameters) = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->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];
                }
 
                return $pipe->{$this->method}(...$parameters);
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
            $parameters = explode(',', $parameters);
        }
 
        return [$name, $parameters];
    }
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure {#881
      class: "Illuminate\Routing\Pipeline"
      this: Pipeline {#36 …}
      parameters: {
        $passable: {}
      }
      use: {
        $stack: Closure {#880 …}
        $pipe: "Roeland\Ab\AbMiddleware"
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($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 {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
app
/
Http
/
Middleware
/
StatsMiddleware.php
            $urls[] = 'http://www.damesschoenenshop.nl/pumps/producten?category%5B11192%5D=Pumps&filters%5Bcolor%5D%5B34609%5D=Rood&order=score&ordertype=desc&page=2';
            $urls[] = 'http://www.damesschoenenshop.nl/pumps?category%5B11192%5D=Pumps&filters%5Bcolor%5D%5B34609%5D=Rood&order=score&ordertype=desc&page=2';
            if (in_array($input['page'], $urls)) {
                return $next($request);
            }
 
            $setting = Settings::where('name', "admin_ips")->remember(15)->first();
            if (isset($setting->id) && $input['ip'] != "127.0.0.1") {
                $ips = (array)json_decode($setting->value);
                if (is_array($ips) && in_array($input['ip'], $ips)) {
                    return $next($request);
                }
            }
            if ($input['ip'] != "172.18.0.1") {
                \Config::set("app.count", true);
                \Config::set("stats.save", $input);
            }
        }
 
        return $next($request);
    }
 
    public function terminate($request, $response)
    {
        $stats = \Config::get("stats.save");
 
        if (!empty($stats)) {
            Stats::create($stats);
        }
    }
}
 
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
                    // otherwise we'll resolve the pipes out of the container and call it with
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    list($name, $parameters) = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->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];
                }
 
                return $pipe->{$this->method}(...$parameters);
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
            $parameters = explode(',', $parameters);
        }
 
        return [$name, $parameters];
    }
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure {#882
      class: "Illuminate\Routing\Pipeline"
      this: Pipeline {#36 …}
      parameters: {
        $passable: {}
      }
      use: {
        $stack: Closure {#881 …}
        $pipe: "App\Http\Middleware\UserLocationMiddleware"
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($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 {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
app
/
Http
/
Middleware
/
MultiLangMiddleware.php
            }
        } else {
            $country_code = Website::current()->country_code;
        }
        Config::set("country.selected_country_code", $country_code);
        $selected_country = Config::get("country.countries.".$country_code);
        Config::set("country.selected_country", $selected_country);
        // set database connection settings
        if (isset($selected_country['products_database'])) {
            foreach ($selected_country['products_database'] as $setting => $value) {
                Config::set("database.connections.mysql_products.".$setting, $value);
            }
        }
 
        // set elastic search index
        if (isset($selected_country['search_index_name'])) {
            Config::set('searchindex.elasticsearch.defaultIndexName', $selected_country['search_index_name']);
        }
        app()->setLocale($selected_country['default_language']);
        return $next($request);
    }
}
 
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
                    // otherwise we'll resolve the pipes out of the container and call it with
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    list($name, $parameters) = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->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];
                }
 
                return $pipe->{$this->method}(...$parameters);
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
            $parameters = explode(',', $parameters);
        }
 
        return [$name, $parameters];
    }
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure {#883
      class: "Illuminate\Routing\Pipeline"
      this: Pipeline {#36 …}
      parameters: {
        $passable: {}
      }
      use: {
        $stack: Closure {#882 …}
        $pipe: "App\Http\Middleware\StatsMiddleware"
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($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 {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
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 $this->addCookieToResponse($request, $next($request));
        }
 
        throw new TokenMismatchException;
    }
 
    /**
     * 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']);
    }
 
    /**
     * Determine if the application is running unit tests.
     *
     * @return bool
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
app
/
Http
/
Middleware
/
VerifyCsrfToken.php
     * @param  \Illuminate\Http\Request $request
     * @param  \Closure $next
     * @return mixed
     */
    protected $except = [
        'admin/issue/update*',
        'client/register/store',
        'ajax/sync-favorite',
        'webhook*',
        'awin*',
        'api_performnencehorizon*'
    ];
 
    public function handle($request, Closure $next)
    {
        if ($request->is('affiliate*')) {
            return parent::addCookieToResponse($request, $next($request));
        }
 
        return parent::handle($request, $next);
    }
}
 
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure {#884
      class: "Illuminate\Routing\Pipeline"
      this: Pipeline {#36 …}
      parameters: {
        $passable: {}
      }
      use: {
        $stack: Closure {#883 …}
        $pipe: "App\Http\Middleware\MultiLangMiddleware"
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
                    // otherwise we'll resolve the pipes out of the container and call it with
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    list($name, $parameters) = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->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];
                }
 
                return $pipe->{$this->method}(...$parameters);
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
            $parameters = explode(',', $parameters);
        }
 
        return [$name, $parameters];
    }
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure {#884
      class: "Illuminate\Routing\Pipeline"
      this: Pipeline {#36 …}
      parameters: {
        $passable: {}
      }
      use: {
        $stack: Closure {#883 …}
        $pipe: "App\Http\Middleware\MultiLangMiddleware"
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($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 {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
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);
    }
}
 
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
                    // otherwise we'll resolve the pipes out of the container and call it with
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    list($name, $parameters) = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->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];
                }
 
                return $pipe->{$this->method}(...$parameters);
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
            $parameters = explode(',', $parameters);
        }
 
        return [$name, $parameters];
    }
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure {#885
      class: "Illuminate\Routing\Pipeline"
      this: Pipeline {#36 …}
      parameters: {
        $passable: {}
      }
      use: {
        $stack: Closure {#884 …}
        $pipe: "App\Http\Middleware\VerifyCsrfToken"
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($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 {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Session
/
Middleware
/
StartSession.php
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        $this->sessionHandled = true;
 
        // 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.
        if ($this->sessionConfigured()) {
            $request->setLaravelSession(
                $session = $this->startSession($request)
            );
 
            $this->collectGarbage($session);
        }
 
        $response = $next($request);
 
        // 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.
        if ($this->sessionConfigured()) {
            $this->storeCurrentUrl($request, $session);
 
            $this->addCookieToResponse($response, $session);
        }
 
        return $response;
    }
 
    /**
     * Perform any final actions for the request lifecycle.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Symfony\Component\HttpFoundation\Response  $response
     * @return void
     */
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
                    // otherwise we'll resolve the pipes out of the container and call it with
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    list($name, $parameters) = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->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];
                }
 
                return $pipe->{$this->method}(...$parameters);
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
            $parameters = explode(',', $parameters);
        }
 
        return [$name, $parameters];
    }
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure {#886
      class: "Illuminate\Routing\Pipeline"
      this: Pipeline {#36 …}
      parameters: {
        $passable: {}
      }
      use: {
        $stack: Closure {#885 …}
        $pipe: "Illuminate\View\Middleware\ShareErrorsFromSession"
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($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 {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
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;
    }
}
 
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
                    // otherwise we'll resolve the pipes out of the container and call it with
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    list($name, $parameters) = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->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];
                }
 
                return $pipe->{$this->method}(...$parameters);
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
            $parameters = explode(',', $parameters);
        }
 
        return [$name, $parameters];
    }
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure {#887
      class: "Illuminate\Routing\Pipeline"
      this: Pipeline {#36 …}
      parameters: {
        $passable: {}
      }
      use: {
        $stack: Closure {#886 …}
        $pipe: "Illuminate\Session\Middleware\StartSession"
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($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 {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Cookie
/
Middleware
/
EncryptCookies.php
     * Disable encryption for the given cookie name(s).
     *
     * @param  string|array  $cookieName
     * @return void
     */
    public function disableFor($cookieName)
    {
        $this->except = array_merge($this->except, (array) $cookieName);
    }
 
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    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 => $c) {
            if ($this->isDisabled($key)) {
                continue;
            }
 
            try {
                $request->cookies->set($key, $this->decryptCookie($c));
            } catch (DecryptException $e) {
                $request->cookies->set($key, null);
            }
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
                    // otherwise we'll resolve the pipes out of the container and call it with
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    list($name, $parameters) = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->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];
                }
 
                return $pipe->{$this->method}(...$parameters);
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
            $parameters = explode(',', $parameters);
        }
 
        return [$name, $parameters];
    }
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure {#888
      class: "Illuminate\Routing\Pipeline"
      this: Pipeline {#36 …}
      parameters: {
        $passable: {}
      }
      use: {
        $stack: Closure {#887 …}
        $pipe: "Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse"
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($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 {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Middleware
/
CheckForMaintenanceMode.php
    }
 
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     *
     * @throws \Symfony\Component\HttpKernel\Exception\HttpException
     */
    public function handle($request, Closure $next)
    {
        if ($this->app->isDownForMaintenance()) {
            $data = json_decode(file_get_contents($this->app->storagePath().'/framework/down'), true);
 
            throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
        }
 
        return $next($request);
    }
}
 
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
                    // otherwise we'll resolve the pipes out of the container and call it with
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    list($name, $parameters) = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->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];
                }
 
                return $pipe->{$this->method}(...$parameters);
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
            $parameters = explode(',', $parameters);
        }
 
        return [$name, $parameters];
    }
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure {#889
      class: "Illuminate\Routing\Pipeline"
      this: Pipeline {#36 …}
      parameters: {
        $passable: {}
      }
      use: {
        $stack: Closure {#888 …}
        $pipe: "Illuminate\Cookie\Middleware\EncryptCookies"
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($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 {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
app
/
Http
/
Middleware
/
PhpUnitMiddleware.php
     * @param  Request  $request
     * @param  Closure  $next
     * @return mixed
     */
    public function handle(Request $request, Closure $next)
    {
 
        // Check if the domain is a test domain
        // Otherwise this code should never be run
        if ($request->root() === 'http://nginx_build') {
            $path = base_path(static::$path);
            if (file_exists($path)) {
                Config::set(
                    'country.countries.' . config('country.selected_country_code') . '.default_website_url',
                    file_get_contents($path)
                );
            }
        }
 
        return $next($request);
    }
}
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
                    // otherwise we'll resolve the pipes out of the container and call it with
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    list($name, $parameters) = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->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];
                }
 
                return $pipe->{$this->method}(...$parameters);
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
            $parameters = explode(',', $parameters);
        }
 
        return [$name, $parameters];
    }
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure {#890
      class: "Illuminate\Routing\Pipeline"
      this: Pipeline {#36 …}
      parameters: {
        $passable: {}
      }
      use: {
        $stack: Closure {#889 …}
        $pipe: "Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode"
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($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 {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
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);
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            return $destination($passable);
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
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()
Arguments
  1. Closure {#38
      class: "Illuminate\Foundation\Http\Kernel"
      this: Kernel {#23 …}
      parameters: {
        $request: {}
      }
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
laravel
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
            $router->middlewareGroup($key, $middleware);
        }
 
        foreach ($this->routeMiddleware as $key => $middleware) {
            $router->aliasMiddleware($key, $middleware);
        }
    }
 
    /**
     * Handle an incoming HTTP request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function handle($request)
    {
        try {
            $request->enableHttpMethodParameterOverride();
 
            $response = $this->sendRequestThroughRouter($request);
        } catch (Exception $e) {
            $this->reportException($e);
 
            $response = $this->renderException($request, $e);
        } catch (Throwable $e) {
            $this->reportException($e = new FatalThrowableError($e));
 
            $response = $this->renderException($request, $e);
        }
 
        $this->app['events']->dispatch(
            new Events\RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/
home
/
chris
/
domains
/
bewinkel.nl
/
public_html
/
index.php
$app->bind('path.public', function() {
    return __DIR__;
});
 
/*
|--------------------------------------------------------------------------
| 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');
 
$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);
 
$response->send();
 
$kernel->terminate($request, $response);
 
 
 
    // $diff = microtime(true) - $timeStart;
    // $sec = intval($diff);
    // $micro = $diff - $sec;
    // echo "Time: " . round($micro * 1000, 0) . " ms";
 
Arguments
  1. Request {#39
      #json: null
      #convertedFiles: null
      #userResolver: Closure {#6755
        class: "Illuminate\Auth\AuthServiceProvider"
        this: AuthServiceProvider {#19 …}
        parameters: {
          $guard: {
            default: null
          }
        }
        use: {
          $app: Application {#3 …}
        }
      }
      #routeResolver: Closure {#6753
        class: "Illuminate\Routing\Router"
        this: Router {#22 …}
        use: {
          $route: Route {#838 …}
        }
      }
      +attributes: ParameterBag {#41}
      +request: ParameterBag {#47}
      +query: ParameterBag {#47}
      +server: ServerBag {#43}
      +files: FileBag {#44}
      +cookies: ParameterBag {#42}
      +headers: HeaderBag {#45}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: null
      #pathInfo: "/sitemap"
      #requestUri: "/sitemap"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Store {#609}
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isClientIpsValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    

Environment & details:

empty
empty
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler