ErrorException (E_NOTICE)
Trying to get property 'id' of non-object ErrorException thrown with message "Trying to get property 'id' of non-object" Stacktrace: #51 ErrorException in /var/www/partner-med.com/app/Http/Controllers/Index.php:415 #50 Illuminate\Foundation\Bootstrap\HandleExceptions:handleError in /var/www/partner-med.com/app/Http/Controllers/Index.php:415 #49 App\Http\Controllers\Index:beforeafter in /var/www/partner-med.com/app/Http/Controllers/Index.php:530 #48 App\Http\Controllers\Index:__call in /var/www/partner-med.com/app/Http/Controllers/Pages.php:462 #47 App\Http\Controllers\Pages:run in /var/www/partner-med.com/app/Http/Controllers/Pages.php:334 #46 App\Http\Controllers\Pages:render in /var/www/partner-med.com/app/Http/Controllers/Pages.php:387 #45 App\Http\Controllers\Pages:getView in /var/www/partner-med.com/app/Http/Controllers/Pages.php:414 #44 App\Http\Controllers\Pages:index in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54 #43 call_user_func_array in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54 #42 Illuminate\Routing\Controller:callAction in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45 #41 Illuminate\Routing\ControllerDispatcher:dispatch in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Route.php:255 #40 Illuminate\Routing\Route:runController in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Route.php:197 #39 Illuminate\Routing\Route:run in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:691 #38 Illuminate\Routing\Router:Illuminate\Routing\{closure} in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 #37 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/partner-med.com/app/Http/Middleware/ShowDebugbarMiddleware.php:39 #36 App\Http\Middleware\ShowDebugbarMiddleware:handle in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #35 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 #34 Illuminate\Routing\Middleware\SubstituteBindings:handle in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #33 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/partner-med.com/app/Http/Middleware/ReplaceCity.php:68 #32 App\Http\Middleware\ReplaceCity:handle in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #31 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/partner-med.com/app/Http/Middleware/getCitys.php:54 #30 App\Http\Middleware\getCitys:handle in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #29 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:77 #28 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #27 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 #26 Illuminate\View\Middleware\ShareErrorsFromSession:handle in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #25 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:116 #24 Illuminate\Session\Middleware\StartSession:handleStatefulRequest in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:62 #23 Illuminate\Session\Middleware\StartSession:handle in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #22 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 #21 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #20 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67 #19 Illuminate\Cookie\Middleware\EncryptCookies:handle in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #18 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103 #17 Illuminate\Pipeline\Pipeline:then in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:693 #16 Illuminate\Routing\Router:runRouteWithinStack in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:668 #15 Illuminate\Routing\Router:runRoute in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:634 #14 Illuminate\Routing\Router:dispatchToRoute in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:623 #13 Illuminate\Routing\Router:dispatch in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:166 #12 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 #11 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/partner-med.com/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:67 #10 Barryvdh\Debugbar\Middleware\InjectDebugbar:handle in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #9 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/partner-med.com/vendor/fruitcake/laravel-cors/src/HandleCors.php:38 #8 Fruitcake\Cors\HandleCors:handle in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/partner-med.com/app/Http/Middleware/CacheKiller.php:21 #6 App\Http\Middleware\CacheKiller:handle in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #5 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:87 #4 Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance:handle in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #3 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103 #2 Illuminate\Pipeline\Pipeline:then in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:141 #1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110 #0 Illuminate\Foundation\Http\Kernel:handle in /var/www/partner-med.com/public/index.php:64
51
ErrorException
/app/Http/Controllers/Index.php415
50
Illuminate\Foundation\Bootstrap\HandleExceptions handleError
/app/Http/Controllers/Index.php415
49
App\Http\Controllers\Index beforeafter
/app/Http/Controllers/Index.php530
48
App\Http\Controllers\Index __call
/app/Http/Controllers/Pages.php462
47
App\Http\Controllers\Pages run
/app/Http/Controllers/Pages.php334
46
App\Http\Controllers\Pages render
/app/Http/Controllers/Pages.php387
45
App\Http\Controllers\Pages getView
/app/Http/Controllers/Pages.php414
44
App\Http\Controllers\Pages index
/vendor/laravel/framework/src/Illuminate/Routing/Controller.php54
43
call_user_func_array
/vendor/laravel/framework/src/Illuminate/Routing/Controller.php54
42
Illuminate\Routing\Controller callAction
/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php45
41
Illuminate\Routing\ControllerDispatcher dispatch
/vendor/laravel/framework/src/Illuminate/Routing/Route.php255
40
Illuminate\Routing\Route runController
/vendor/laravel/framework/src/Illuminate/Routing/Route.php197
39
Illuminate\Routing\Route run
/vendor/laravel/framework/src/Illuminate/Routing/Router.php691
38
Illuminate\Routing\Router Illuminate\Routing\{closure}
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php128
37
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/app/Http/Middleware/ShowDebugbarMiddleware.php39
36
App\Http\Middleware\ShowDebugbarMiddleware handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
35
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php41
34
Illuminate\Routing\Middleware\SubstituteBindings handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
33
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/app/Http/Middleware/ReplaceCity.php68
32
App\Http\Middleware\ReplaceCity handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
31
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/app/Http/Middleware/getCitys.php54
30
App\Http\Middleware\getCitys handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
29
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php77
28
Illuminate\Foundation\Http\Middleware\VerifyCsrfToken handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
27
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php49
26
Illuminate\View\Middleware\ShareErrorsFromSession handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
25
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php116
24
Illuminate\Session\Middleware\StartSession handleStatefulRequest
/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php62
23
Illuminate\Session\Middleware\StartSession handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
22
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php37
21
Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
20
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php67
19
Illuminate\Cookie\Middleware\EncryptCookies handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
18
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php103
17
Illuminate\Pipeline\Pipeline then
/vendor/laravel/framework/src/Illuminate/Routing/Router.php693
16
Illuminate\Routing\Router runRouteWithinStack
/vendor/laravel/framework/src/Illuminate/Routing/Router.php668
15
Illuminate\Routing\Router runRoute
/vendor/laravel/framework/src/Illuminate/Routing/Router.php634
14
Illuminate\Routing\Router dispatchToRoute
/vendor/laravel/framework/src/Illuminate/Routing/Router.php623
13
Illuminate\Routing\Router dispatch
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php166
12
Illuminate\Foundation\Http\Kernel Illuminate\Foundation\Http\{closure}
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php128
11
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php67
10
Barryvdh\Debugbar\Middleware\InjectDebugbar handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
9
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/fruitcake/laravel-cors/src/HandleCors.php38
8
Fruitcake\Cors\HandleCors handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
7
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/app/Http/Middleware/CacheKiller.php21
6
App\Http\Middleware\CacheKiller handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
5
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php87
4
Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
3
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php103
2
Illuminate\Pipeline\Pipeline then
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php141
1
Illuminate\Foundation\Http\Kernel sendRequestThroughRouter
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php110
0
Illuminate\Foundation\Http\Kernel handle
/public/index.php64
/var/www/partner-med.com/app/Http/Controllers/Index.php
        //$beforeafters = \DB::table("beforeafters")->get();
        $catservices = \DB::table("catservices")->where('id', '!=', 62)->get()->all();
 
        return array_merge(
            $this->getCommonData(),
            [
                'part' => 'photo-do-i-posle',
                'cats' => $catservices,
                'title' => 'Фото лечения, имплантации, протезирования зубов ДО и ПОСЛЕ в стоматологии в Москве',
                'h1' => 'Фото зубов ДО и ПОСЛЕ',
                'meta_k' => 'До и После',
                'meta_d' => 'Фотографии лечения, имплантации, протезирования, реставрации зубов, исправления прикуса  ДО и ПОСЛЕ в стоматологии Партнер-Мед в Москве с описанием клинических случаем и указанием лечащего врача-стоматолога.'
            ]
        );
    }
 
    public function beforeafter()
    {
        $cat = Catservice::where('slug', '=', $this->cat)->first();
        $item = Beforeafter::where("catservice_id", "=", $cat->id)->get();
 
        return array_merge($this->getCommonData(), ['articles' => $item, 'cat' => $cat]);
    }
 
    public function catarticle()
    {
        $rec = $this->getRecFunc();
//            $article = \DB::table("articles")->where('slug',$this->slug)->with('stocks')->first();
        $article = \App\Model\Article::where('slug', $this->slug)->with('stocks')->first();
        if (empty($article)) {
            abort(404);
        }
        if (auth()->user() && auth()->id() == 13311) {
            $catArticleMatch = \App\Model\Catarticle::where('id', $article->catarticle_id)
                ->where('slug', $this->cat)
                ->count();
            if (!$catArticleMatch) {
                abort(404);
            }
        }
Arguments
  1. "Trying to get property 'id' of non-object"
    
/var/www/partner-med.com/app/Http/Controllers/Index.php
        //$beforeafters = \DB::table("beforeafters")->get();
        $catservices = \DB::table("catservices")->where('id', '!=', 62)->get()->all();
 
        return array_merge(
            $this->getCommonData(),
            [
                'part' => 'photo-do-i-posle',
                'cats' => $catservices,
                'title' => 'Фото лечения, имплантации, протезирования зубов ДО и ПОСЛЕ в стоматологии в Москве',
                'h1' => 'Фото зубов ДО и ПОСЛЕ',
                'meta_k' => 'До и После',
                'meta_d' => 'Фотографии лечения, имплантации, протезирования, реставрации зубов, исправления прикуса  ДО и ПОСЛЕ в стоматологии Партнер-Мед в Москве с описанием клинических случаем и указанием лечащего врача-стоматолога.'
            ]
        );
    }
 
    public function beforeafter()
    {
        $cat = Catservice::where('slug', '=', $this->cat)->first();
        $item = Beforeafter::where("catservice_id", "=", $cat->id)->get();
 
        return array_merge($this->getCommonData(), ['articles' => $item, 'cat' => $cat]);
    }
 
    public function catarticle()
    {
        $rec = $this->getRecFunc();
//            $article = \DB::table("articles")->where('slug',$this->slug)->with('stocks')->first();
        $article = \App\Model\Article::where('slug', $this->slug)->with('stocks')->first();
        if (empty($article)) {
            abort(404);
        }
        if (auth()->user() && auth()->id() == 13311) {
            $catArticleMatch = \App\Model\Catarticle::where('id', $article->catarticle_id)
                ->where('slug', $this->cat)
                ->count();
            if (!$catArticleMatch) {
                abort(404);
            }
        }
Arguments
  1. 8
    
  2. "Trying to get property 'id' of non-object"
    
  3. "/var/www/partner-med.com/app/Http/Controllers/Index.php"
    
  4. 415
    
  5. array:1 [
      "cat" => null
    ]
    
/var/www/partner-med.com/app/Http/Controllers/Index.php
    }
 
    public function getKeywordForService($id)
    {
        $service = \App\Model\Service::find($id);
        return $service->keywords->map(function ($item, $key) {
            return $item->keyword;
        });
    }
 
    public function __call($method, $parametrs)
    {
        preg_match('/index(.+)?/i', $method, $match);
        if (!empty($parametrs[0])) {
            foreach ($parametrs[0] as $k => $p) {
                $this->{$k} = $p;
            }
        }
//        $request = $parametrs[1];
        return $this->{$match[1]}();
    }
 
    public function catsservice()
    {
        $arr = [];
//      print_r($route->parameters());
        $cat = $this->cat;
        if ($this->cat[-1] == " ")
            $cat = str_replace(' ', '%20', $this->cat);
 
        $catarticles = \DB::table("catservices")->where('slug', $cat)->first();
 
        if (empty($catarticles))
            abort(404);
 
        //$this->cat - тут у нас то, что в адресной строке
        //$catarticles->slug - тут то, что в админке
        //мы сравниваем первое и второе. если они не совпадают, но при этом если он совпадают в одном регистре - редиректим на второе (то что в админке)
 
        if ($this->cat != $catarticles->slug && strtolower($this->cat) == strtolower($catarticles->slug)) {
/var/www/partner-med.com/app/Http/Controllers/Pages.php
        }
    }
 
    public function getSpecialistList()
    {
        if ($getSpecialistList = \Cache::get('getSpecialistList')) {
            return $getSpecialistList;
        } else {
            $getSpecialistList = view('widgets/specialists')->render();
            \Cache::put('getSpecialistList', $getSpecialistList, 86400 * 60);
            return $getSpecialistList;
        }
    }
 
    public function run()
    {
        $class = new $this->methods[$this->chain]['class'];
        $this->breadcrumbs();
        return array_merge(
            $class->{'index' . $this->methods[$this->chain]['method']}($this->params),
            ['breadcrumbs' => view('breadcrumbs', ['breadcrumbs' => $this->breadcrumbs])->render()]
        );
    }
}
 
Arguments
  1. "indexbeforeafter"
    
  2. array:1 [
      0 => array:2 [
        "section" => "photo-do-i-posle"
        "cat" => "hirurgiy"
      ]
    ]
    
/var/www/partner-med.com/app/Http/Controllers/Pages.php
            $keys = array_keys($this->params);
            $this->chain = $this->params['section'];
        } else {
            $params = $this->params;
//            print_r($this->params);
            $first = array_shift($params);
            $keys = array_keys($params);
            array_unshift($keys, $first);
            $this->chain = join(".", $keys);
        }
    }
 
    public function render()
    {
 
 
        $cache = $this->getCache(
            $_SERVER['HTTP_HOST'] . '/' . (empty($this->params) ? '' : trim(join("/", $this->params) . (!empty(\Auth::user()) ? \Auth::user()->email : ''))),
            $this->view,
            $this->run()
        );
 
        if (trim(join("/", $this->params)) == '') {
            $counter = \DB::table('counters')->select()->where('id', '=', 1)->first();
            $online = rand(398, 416);
            $searches = [
                '/%%online%%/i',
                '/%%healings%%/i',
                '/%%patients%%/i'
            ];
            $replaces = [
                $online,
                $counter->healings,
                $counter->patients
            ];
            return preg_replace($searches, $replaces, $cache);
        } else {
            $searches = [
 
                '/<meta\sname=\"csrf-token\"\scontent=\"[^\"]+?\">/i',
/var/www/partner-med.com/app/Http/Controllers/Pages.php
        if (!empty($this->params)) {
            $this->getChain();
            if (array_key_exists($this->chain, $this->views)) {
                $this->view = $this->views[$this->chain];
            }
        } else {
            $this->getChain();
            $this->view = 'home';
        }
    }
 
    public function getView()
    {
        if (!empty($this->params)) {
            $this->getChain();
 
 
            if (array_key_exists($this->chain, $this->views)) {
                $this->view = $this->views[$this->chain];
                return $this->render();
            } else {
                //$this->chain = '404';
                //$this->view = 'errors.404';
                //return $this->render();
                abort(404);
            }
        } else {
            $this->getChain();
            $this->view = 'home';
            return $this->render();
        }
    }
 
    public function index(Route $route, Request $request)
    {
        $url = $request->getUri();
 
 
        $urlsRedirect = \App\Model\Redirect::all()->where('old', $url)->all();
        foreach ($urlsRedirect as $url) {
/var/www/partner-med.com/app/Http/Controllers/Pages.php
            $this->getChain();
            $this->view = 'home';
            return $this->render();
        }
    }
 
    public function index(Route $route, Request $request)
    {
        $url = $request->getUri();
 
 
        $urlsRedirect = \App\Model\Redirect::all()->where('old', $url)->all();
        foreach ($urlsRedirect as $url) {
            if (!empty($url->new)) {
                return redirect($url->new);
            }
        }
        $this->params = $route->parameters();
        $this->parametrs = $route->parameters();
        return $this->getView();
    }
 
    public function getCitys()
    {
        if (Cache::has('popupCityList')) {
            return Cache::get('popupCityList');
        } else {
            if (Cache::has('modelallcity')) {
                $city = Cache::get('modelallcity');
 
            } else {
                $city = \App\Model\City::get()->keyBy('slug');
                Cache::forever('modelallcity', $city);
            }
            $popupCityList = view('citylist', ['city' => $city])->render();
            Cache::forever('popupCityList', $popupCityList);
            return $popupCityList;
        }
    }
 
/var/www/partner-med.com/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  string  $method
     * @param  array  $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    public function __call($method, $parameters)
    {
        throw new BadMethodCallException(sprintf(
            'Method %s::%s does not exist.', static::class, $method
        ));
    }
}
 
Arguments
  1. Illuminate\Routing\Route {#1609}
    
  2. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  3. "photo-do-i-posle"
    
  4. "hirurgiy"
    
/var/www/partner-med.com/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  string  $method
     * @param  array  $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    public function __call($method, $parameters)
    {
        throw new BadMethodCallException(sprintf(
            'Method %s::%s does not exist.', static::class, $method
        ));
    }
}
 
Arguments
  1. array:2 [
      0 => App\Http\Controllers\Pages {#1879}
      1 => "index"
    ]
    
  2. array:4 [
      0 => Illuminate\Routing\Route {#1609}
      1 => Illuminate\Http\Request {#43
        #json: null
        #convertedFiles: null
        #userResolver: Closure($guard = null) {#1763 …4}
        #routeResolver: Closure() {#1770 …4}
        +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
        +request: Symfony\Component\HttpFoundation\InputBag {#51}
        +query: Symfony\Component\HttpFoundation\InputBag {#51}
        +server: Symfony\Component\HttpFoundation\ServerBag {#47}
        +files: Symfony\Component\HttpFoundation\FileBag {#48}
        +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
        +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
        #content: null
        #languages: null
        #charsets: null
        #encodings: null
        #acceptableContentTypes: array:1 [
          0 => "*/*"
        ]
        #pathInfo: "/photo-do-i-posle/hirurgiy"
        #requestUri: "/photo-do-i-posle/hirurgiy"
        #baseUrl: ""
        #basePath: null
        #method: "GET"
        #format: null
        #session: Illuminate\Session\Store {#259}
        #locale: null
        #defaultLocale: "en"
        -preferredFormat: null
        -isHostValid: true
        -isForwardedValid: true
        -isSafeContentPreferred: null
        basePath: ""
        format: "html"
      }
      "section" => "photo-do-i-posle"
      "cat" => "hirurgiy"
    ]
    
/var/www/partner-med.com/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 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:4 [
      0 => Illuminate\Routing\Route {#1609}
      1 => Illuminate\Http\Request {#43
        #json: null
        #convertedFiles: null
        #userResolver: Closure($guard = null) {#1763 …4}
        #routeResolver: Closure() {#1770 …4}
        +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
        +request: Symfony\Component\HttpFoundation\InputBag {#51}
        +query: Symfony\Component\HttpFoundation\InputBag {#51}
        +server: Symfony\Component\HttpFoundation\ServerBag {#47}
        +files: Symfony\Component\HttpFoundation\FileBag {#48}
        +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
        +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
        #content: null
        #languages: null
        #charsets: null
        #encodings: null
        #acceptableContentTypes: array:1 [
          0 => "*/*"
        ]
        #pathInfo: "/photo-do-i-posle/hirurgiy"
        #requestUri: "/photo-do-i-posle/hirurgiy"
        #baseUrl: ""
        #basePath: null
        #method: "GET"
        #format: null
        #session: Illuminate\Session\Store {#259}
        #locale: null
        #defaultLocale: "en"
        -preferredFormat: null
        -isHostValid: true
        -isForwardedValid: true
        -isSafeContentPreferred: null
        basePath: ""
        format: "html"
      }
      "section" => "photo-do-i-posle"
      "cat" => "hirurgiy"
    ]
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Route.php
     *
     * @return bool
     */
    protected function isSerializedClosure()
    {
        return is_string($this->action['uses']) &&
               Str::startsWith($this->action['uses'], 'C:32:"Opis\\Closure\\SerializableClosure') !== false;
    }
 
    /**
     * Run the route action and return the response.
     *
     * @return mixed
     *
     * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
     */
    protected function runController()
    {
        return $this->controllerDispatcher()->dispatch(
            $this, $this->getController(), $this->getControllerMethod()
        );
    }
 
    /**
     * Get the controller instance for the route.
     *
     * @return mixed
     */
    public function getController()
    {
        if (! $this->controller) {
            $class = $this->parseControllerCallback()[0];
 
            $this->controller = $this->container->make(ltrim($class, '\\'));
        }
 
        return $this->controller;
    }
 
    /**
Arguments
  1. Illuminate\Routing\Route {#1609}
    
  2. App\Http\Controllers\Pages {#1879}
    
  3. "index"
    
/var/www/partner-med.com/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']) && ! $this->isSerializedClosure();
    }
 
    /**
     * Run the route action and return the response.
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php
    /**
     * Run the given route within a Stack "onion" instance.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
                        ->then(function ($request) use ($route) {
                            return $this->prepareResponse(
                                $request, $route->run()
                            );
                        });
    }
 
    /**
     * Gather the middleware for the given route with resolved class names.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return array
     */
    public function gatherRouteMiddleware(Route $route)
    {
        $excluded = collect($route->excludedMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten()->values()->all();
 
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten()->reject(function ($name) use ($excluded) {
            return in_array($name, $excluded, true);
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
     * @return mixed
     */
    public function thenReturn()
    {
        return $this->then(function ($passable) {
            return $passable;
        });
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            try {
                return $destination($passable);
            } catch (Throwable $e) {
                return $this->handleException($passable, $e);
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    if (is_callable($pipe)) {
                        // If the pipe is a callable, then we will call it directly, but otherwise we
                        // will resolve the pipes out of the dependency container and call it with
                        // the appropriate method and arguments, returning the results back out.
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/app/Http/Middleware/ShowDebugbarMiddleware.php
    public function handle($request, Closure $next)
    {
 
        if (auth()->user() && auth()->id() == 13311) {
            \Debugbar::enabled();
            if($_SERVER["REMOTE_ADDR"] == "213.219.209.146") {
                //dd('enabled');
            }
        }
        /*elseif($_SERVER["REMOTE_ADDR"] == "213.219.209.146") {
            \Debugbar::enabled();
        }*/
        else {
            \Debugbar::disable();
            if($_SERVER["REMOTE_ADDR"] == "213.219.209.146") {
                //dd(auth('api')->user(), Auth()->check(), Auth::user(), $request->user(), auth()->user(), 'disabled');
            }
        }
 
        return $next($request);
    }
}
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#1880 …4}
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php
     */
    public function __construct(Registrar $router)
    {
        $this->router = $router;
    }
 
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        $this->router->substituteBindings($route = $request->route());
 
        $this->router->substituteImplicitBindings($route);
 
        return $next($request);
    }
}
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#1881 …4}
    
/var/www/partner-med.com/app/Http/Middleware/ReplaceCity.php
                case '/articles/protezirovanie-zubov/Gnatologiya-chto-eto-takoe':
                    return redirect('/services/lechenie-vnchs/Gnatologiya-chto-eto-takoe');
                break;
                case '/articles/ispravlenie-prikusa/Bol-v-jevatelnyih-myishtsah':
                     return redirect('/services/lechenie-vnchs/Bol-v-jevatelnyih-myishtsah');
                break;
            }
//            \App::instance('currentCity', count($explode)===3 ?  $this->getTextCity($this->modelCity[$explode[0]]) : ['slug'=>'/', 'city'=>'Москва']);
             $city = json_decode(\App::make('currentCity'));
              
//           dd($response);
//            $collection = $response->original;
//            $collection->put('timestamp',Carbon::now()->timestamp);
//            $response->setContent($collection);
            //$content = preg_replace('/моск[^\s<"]+/iu','г. '.$city->city, $response->getContent());
//            echo $response->getContent();
            //$response->setContent($content);
            return $response;
        } else {
            return $next($request);
        }
    }
}
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#1882 …4}
    
/var/www/partner-med.com/app/Http/Middleware/getCitys.php
            $this->currentCity();
 
            if (empty($this->currentCity)) {
                return redirect()->to('https://partner-med.com/', 301);
            }
 
            \App::instance('currentCity', $this->currentCity);
            $response = $next($request);
            //\App::instance('currentCity', count($explode)===3 ?  $this->getTextCity($this->modelCity[$explode[0]]) : ['slug'=>'/', 'city'=>'Москва']);
            $city = json_decode(\App::make('currentCity'));
//           dd($response);
//            $collection = $response->original;
//            $collection->put('timestamp',Carbon::now()->timestamp);
//            $response->setContent($collection);
            //$content = preg_replace('/моск[^\s<"]+/iu',$city->city, $response->getContent());
//            echo $response->getContent();
            //$response->setContent($content);
            return $response;
        } else {
            return $next($request);
        }
    }
 
    public function index()
    {
        if (\Cache::has('city') && \Cache::has('modelCity')) {
            $this->modelCity = \Cache::get('modelCity');
            $this->city = \Cache::get('city');
        } else {
            $this->modelCity = City::where('slug', '!=', 'moskva')
                //->where('groupe', '!=', 0)
                ->orderBy('city', 'asc')
                ->get(['id', 'city', 'slug', 'tmpl', 'groupe'])
                ->keyBy('slug');
            \Cache::forever('modelCity', $this->modelCity);
            foreach ($this->modelCity as $с) {
                $sym = substr($с->city, 0, 2);
                $this->city[$sym][] = $с;
            }
            \Cache::forever('city', $this->city);
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#1883 …4}
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php
    }
 
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     *
     * @throws \Illuminate\Session\TokenMismatchException
     */
    public function handle($request, Closure $next)
    {
        if (
            $this->isReading($request) ||
            $this->runningUnitTests() ||
            $this->inExceptArray($request) ||
            $this->tokensMatch($request)
        ) {
            return tap($next($request), function ($response) use ($request) {
                if ($this->shouldAddXsrfTokenCookie()) {
                    $this->addCookieToResponse($request, $response);
                }
            });
        }
 
        throw new TokenMismatchException('CSRF token mismatch.');
    }
 
    /**
     * Determine if the HTTP request uses a ‘read’ verb.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return bool
     */
    protected function isReading($request)
    {
        return in_array($request->method(), ['HEAD', 'GET', 'OPTIONS']);
    }
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#1884 …4}
    
/var/www/partner-med.com/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. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#1885 …4}
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
    /**
     * Handle the given request within session state.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Contracts\Session\Session  $session
     * @param  \Closure  $next
     * @return mixed
     */
    protected function handleStatefulRequest(Request $request, $session, Closure $next)
    {
        // If a session driver has been configured, we will need to start the session here
        // so that the data is ready for an application. Note that the Laravel sessions
        // do not make use of PHP "native" sessions in any way since they are crappy.
        $request->setLaravelSession(
            $this->startSession($request, $session)
        );
 
        $this->collectGarbage($session);
 
        $response = $next($request);
 
        $this->storeCurrentUrl($request, $session);
 
        $this->addCookieToResponse($response, $session);
 
        // Again, if the session has been configured we will need to close out the session
        // so that the attributes may be persisted to some storage medium. We will also
        // add the session identifier cookie to the application response headers now.
        $this->saveSession($request);
 
        return $response;
    }
 
    /**
     * Start the session for the given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Contracts\Session\Session  $session
     * @return \Illuminate\Contracts\Session\Session
     */
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        if (! $this->sessionConfigured()) {
            return $next($request);
        }
 
        $session = $this->getSession($request);
 
        if ($this->manager->shouldBlock() ||
            ($request->route() && $request->route()->locksFor())) {
            return $this->handleRequestWhileBlocking($request, $session, $next);
        } else {
            return $this->handleStatefulRequest($request, $session, $next);
        }
    }
 
    /**
     * Handle the given request within session state.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Contracts\Session\Session  $session
     * @param  \Closure  $next
     * @return mixed
     */
    protected function handleRequestWhileBlocking(Request $request, $session, Closure $next)
    {
        $lockFor = $request->route() && $request->route()->locksFor()
                        ? $request->route()->locksFor()
                        : 10;
 
        $lock = $this->cache($this->manager->blockDriver())
                    ->lock('session:'.$session->getId(), $lockFor)
                    ->betweenBlockedAttemptsSleepFor(50);
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  2. Illuminate\Session\Store {#259}
    
  3. Closure($passable) {#1886 …4}
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#1886 …4}
    
/var/www/partner-med.com/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. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#1887 …4}
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php
     * Disable encryption for the given cookie name(s).
     *
     * @param  string|array  $name
     * @return void
     */
    public function disableFor($name)
    {
        $this->except = array_merge($this->except, (array) $name);
    }
 
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function handle($request, Closure $next)
    {
        return $this->encrypt($next($this->decrypt($request)));
    }
 
    /**
     * Decrypt the cookies on the request.
     *
     * @param  \Symfony\Component\HttpFoundation\Request  $request
     * @return \Symfony\Component\HttpFoundation\Request
     */
    protected function decrypt(Request $request)
    {
        foreach ($request->cookies as $key => $cookie) {
            if ($this->isDisabled($key)) {
                continue;
            }
 
            try {
                $value = $this->decryptCookie($key, $cookie);
 
                $hasValidPrefix = strpos($value, CookieValuePrefix::create($key, $this->encrypter->getKey())) === 0;
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#1888 …4}
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
    public function via($method)
    {
        $this->method = $method;
 
        return $this;
    }
 
    /**
     * Run the pipeline with a final destination callback.
     *
     * @param  \Closure  $destination
     * @return mixed
     */
    public function then(Closure $destination)
    {
        $pipeline = array_reduce(
            array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
        );
 
        return $pipeline($this->passable);
    }
 
    /**
     * Run the pipeline and return the result.
     *
     * @return mixed
     */
    public function thenReturn()
    {
        return $this->then(function ($passable) {
            return $passable;
        });
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
                        ->then(function ($request) use ($route) {
                            return $this->prepareResponse(
                                $request, $route->run()
                            );
                        });
    }
 
    /**
     * Gather the middleware for the given route with resolved class names.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return array
     */
    public function gatherRouteMiddleware(Route $route)
    {
        $excluded = collect($route->excludedMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten()->values()->all();
 
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten()->reject(function ($name) use ($excluded) {
            return in_array($name, $excluded, true);
        })->values();
 
Arguments
  1. Closure($request) {#1772 …4}
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php
        return $route;
    }
 
    /**
     * Return the response for the given route.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Routing\Route  $route
     * @return \Symfony\Component\HttpFoundation\Response
     */
    protected function runRoute(Request $request, Route $route)
    {
        $request->setRouteResolver(function () use ($route) {
            return $route;
        });
 
        $this->events->dispatch(new RouteMatched($route, $request));
 
        return $this->prepareResponse($request,
            $this->runRouteWithinStack($route, $request)
        );
    }
 
    /**
     * Run the given route within a Stack "onion" instance.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
Arguments
  1. Illuminate\Routing\Route {#1609}
    
  2. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function dispatch(Request $request)
    {
        $this->currentRequest = $request;
 
        return $this->dispatchToRoute($request);
    }
 
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function dispatchToRoute(Request $request)
    {
        return $this->runRoute($request, $this->findRoute($request));
    }
 
    /**
     * Find the route matching a given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Routing\Route
     */
    protected function findRoute($request)
    {
        $this->current = $route = $this->routes->match($request);
 
        $this->container->instance(Route::class, $route);
 
        return $route;
    }
 
    /**
     * Return the response for the given route.
     *
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  2. Illuminate\Routing\Route {#1609}
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function respondWithRoute($name)
    {
        $route = tap($this->routes->getByName($name))->bind($this->currentRequest);
 
        return $this->runRoute($this->currentRequest, $route);
    }
 
    /**
     * Dispatch the request to the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function dispatch(Request $request)
    {
        $this->currentRequest = $request;
 
        return $this->dispatchToRoute($request);
    }
 
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function dispatchToRoute(Request $request)
    {
        return $this->runRoute($request, $this->findRoute($request));
    }
 
    /**
     * Find the route matching a given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Routing\Route
     */
    protected function findRoute($request)
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/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. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
     * @return mixed
     */
    public function thenReturn()
    {
        return $this->then(function ($passable) {
            return $passable;
        });
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            try {
                return $destination($passable);
            } catch (Throwable $e) {
                return $this->handleException($passable, $e);
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    if (is_callable($pipe)) {
                        // If the pipe is a callable, then we will call it directly, but otherwise we
                        // will resolve the pipes out of the dependency container and call it with
                        // the appropriate method and arguments, returning the results back out.
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php
    }
 
    /**
     * Handle an incoming request.
     *
     * @param  Request  $request
     * @param  Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        if (!$this->debugbar->isEnabled() || $this->inExceptArray($request)) {
            return $next($request);
        }
 
        $this->debugbar->boot();
 
        try {
            /** @var \Illuminate\Http\Response $response */
            $response = $next($request);
        } catch (Exception $e) {
            $response = $this->handleException($request, $e);
        } catch (Error $error) {
            $e = new FatalThrowableError($error);
            $response = $this->handleException($request, $e);
        }
 
        // Modify the response to add the Debugbar
        $this->debugbar->modifyResponse($request, $response);
 
        return $response;
    }
 
    /**
     * Handle the given exception.
     *
     * (Copy from Illuminate\Routing\Pipeline by Taylor Otwell)
     *
     * @param $passable
     * @param  Exception $e
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#1470 …4}
    
/var/www/partner-med.com/vendor/fruitcake/laravel-cors/src/HandleCors.php
    protected $container;
 
    public function __construct(CorsService $cors, Container $container)
    {
        $this->cors = $cors;
        $this->container = $container;
    }
 
    /**
     * Handle an incoming request. Based on Asm89\Stack\Cors by asm89
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return Response
     */
    public function handle($request, Closure $next)
    {
        // Check if we're dealing with CORS and if we should handle it
        if (! $this->shouldRun($request)) {
            return $next($request);
        }
 
        // For Preflight, return the Preflight response
        if ($this->cors->isPreflightRequest($request)) {
            $response = $this->cors->handlePreflightRequest($request);
 
            $this->cors->varyHeader($response, 'Access-Control-Request-Method');
 
            return $response;
        }
 
 
        // Handle the request
        $response = $next($request);
 
        if ($request->getMethod() === 'OPTIONS') {
            $this->cors->varyHeader($response, 'Access-Control-Request-Method');
        }
 
        return $this->addHeaders($request, $response);
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#285 …4}
    
/var/www/partner-med.com/app/Http/Middleware/CacheKiller.php
namespace App\Http\Middleware;
use Closure;
class CacheKiller
{
        public function handle($request, Closure $next)
        {
                $cachedViewsDirectory = app('path.storage').'/framework/views/';
                if ($handle = opendir($cachedViewsDirectory))
                {
                        while (false !== ($entry = readdir($handle)))
                        {
                                if (strstr($entry, '.'))
                                {
                                        continue;
                                }
                                @unlink($cachedViewsDirectory.$entry);
                        }
                        closedir($handle);
                }
                return $next($request);
        }
}
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#1666 …4}
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php
                }
            }
 
            if (isset($data['template'])) {
                return response(
                    $data['template'],
                    $data['status'] ?? 503,
                    isset($data['retry']) ? ['Retry-After' => $data['retry']] : []
                );
            }
 
            throw new HttpException(
                $data['status'] ?? 503,
                'Service Unavailable',
                null,
                isset($data['retry']) ? ['Retry-After' => $data['retry']] : []
            );
        }
 
        return $next($request);
    }
 
    /**
     * Determine if the incoming request has a maintenance mode bypass cookie.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  array  $data
     * @return bool
     */
    protected function hasValidBypassCookie($request, array $data)
    {
        return isset($data['secret']) &&
                $request->cookie('laravel_maintenance') &&
                MaintenanceModeBypassCookie::isValid(
                    $request->cookie('laravel_maintenance'),
                    $data['secret']
                );
    }
 
    /**
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#1667 …4}
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
    public function via($method)
    {
        $this->method = $method;
 
        return $this;
    }
 
    /**
     * Run the pipeline with a final destination callback.
     *
     * @param  \Closure  $destination
     * @return mixed
     */
    public function then(Closure $destination)
    {
        $pipeline = array_reduce(
            array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
        );
 
        return $pipeline($this->passable);
    }
 
    /**
     * Run the pipeline and return the result.
     *
     * @return mixed
     */
    public function thenReturn()
    {
        return $this->then(function ($passable) {
            return $passable;
        });
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/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($request) {#1501 …4}
    
/var/www/partner-med.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
    public function __construct(Application $app, Router $router)
    {
        $this->app = $app;
        $this->router = $router;
 
        $this->syncMiddlewareToRouter();
    }
 
    /**
     * Handle an incoming HTTP request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function handle($request)
    {
        try {
            $request->enableHttpMethodParameterOverride();
 
            $response = $this->sendRequestThroughRouter($request);
        } catch (Throwable $e) {
            $this->reportException($e);
 
            $response = $this->renderException($request, $e);
        }
 
        $this->app['events']->dispatch(
            new RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    protected function sendRequestThroughRouter($request)
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    
/var/www/partner-med.com/public/index.php
*/
 
$app = require_once __DIR__ . '/../bootstrap/app.php';
 
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
 
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
 
$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);
 
$response->send();
 
$kernel->terminate($request, $response);
 
Arguments
  1. Illuminate\Http\Request {#43
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#1763 …4}
      #routeResolver: Closure() {#1770 …4}
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +request: Symfony\Component\HttpFoundation\InputBag {#51}
      +query: Symfony\Component\HttpFoundation\InputBag {#51}
      +server: Symfony\Component\HttpFoundation\ServerBag {#47}
      +files: Symfony\Component\HttpFoundation\FileBag {#48}
      +cookies: Symfony\Component\HttpFoundation\InputBag {#46}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#49}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/photo-do-i-posle/hirurgiy"
      #requestUri: "/photo-do-i-posle/hirurgiy"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: Illuminate\Session\Store {#259}
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      -isSafeContentPreferred: null
      basePath: ""
      format: "html"
    }
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
USER
"apache"
HOME
"/usr/share/httpd"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/photo-do-i-posle/hirurgiy"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/photo-do-i-posle/hirurgiy"
REMOTE_PORT
"41514"
SCRIPT_FILENAME
"/var/www/partner-med.com/public/index.php"
SERVER_ADMIN
"root@localhost"
CONTEXT_DOCUMENT_ROOT
"/var/www/partner-med.com/public"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/var/www/partner-med.com/public"
REMOTE_ADDR
"44.222.125.114"
SERVER_PORT
"443"
SERVER_ADDR
"5.188.159.110"
SERVER_NAME
"partner-med.com"
SERVER_SOFTWARE
"Apache/2.4.37 (centos) OpenSSL/1.1.1g"
SERVER_SIGNATURE
""
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
HTTP_HOST
"partner-med.com"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
proxy-nokeepalive
"1"
SSL_SESSION_RESUMED
"Initial"
SSL_SESSION_ID
"2ea46c22020b954cad74b6b62ce9fcfb2cafdb907e3c86a674238846240ad766"
SSL_SERVER_A_SIG
"sha256WithRSAEncryption"
SSL_SERVER_A_KEY
"rsaEncryption"
SSL_SERVER_I_DN
"CN=GlobalSign GCC R3 DV TLS CA 2020,O=GlobalSign nv-sa,C=BE"
SSL_SERVER_S_DN
"CN=*.partner-med.com"
SSL_SERVER_V_END
"Jan  7 04:49:13 2025 GMT"
SSL_SERVER_V_START
"Dec 28 06:12:01 2023 GMT"
SSL_SERVER_M_SERIAL
"13079A5BDBFB14367DE6224E"
SSL_SERVER_M_VERSION
"3"
SSL_CLIENT_VERIFY
"NONE"
SSL_CIPHER_ALGKEYSIZE
"256"
SSL_CIPHER_USEKEYSIZE
"256"
SSL_CIPHER_EXPORT
"false"
SSL_CIPHER
"TLS_AES_256_GCM_SHA384"
SSL_COMPRESS_METHOD
"NULL"
SSL_SECURE_RENEG
"true"
SSL_PROTOCOL
"TLSv1.3"
SSL_VERSION_LIBRARY
"OpenSSL/1.1.1g"
SSL_VERSION_INTERFACE
"mod_ssl/2.4.37"
SSL_SERVER_SAN_DNS_4
"partner-med.com"
SSL_SERVER_SAN_DNS_3
"owa.partner-med.com"
SSL_SERVER_SAN_DNS_2
"mail.partner-med.com"
SSL_SERVER_SAN_DNS_1
"autodiscover.partner-med.com"
SSL_SERVER_SAN_DNS_0
"*.partner-med.com"
SSL_SERVER_I_DN_CN
"GlobalSign GCC R3 DV TLS CA 2020"
SSL_SERVER_I_DN_O
"GlobalSign nv-sa"
SSL_SERVER_I_DN_C
"BE"
SSL_SERVER_S_DN_CN
"*.partner-med.com"
SSL_TLS_SNI
"partner-med.com"
HTTPS
"on"
UNIQUE_ID
"ZgaBL9b-7VOze5mnNhQhbwAAAYQ"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"partner-med.com"
REDIRECT_HTTPS
"on"
REDIRECT_UNIQUE_ID
"ZgaBL9b-7VOze5mnNhQhbwAAAYQ"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711702319.2213
REQUEST_TIME
1711702319
APP_ENV
"dev"
APP_DEBUG
"true"
APP_KEY
"base64:F25FFXG6IMCphwtV8JXuUSobjyEh4PJIQRoxOvJkcG4="
APP_URL
"https://partner-med.com"
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"partner-med"
DB_USERNAME
"root"
DB_PASSWORD
"THDxJKPyeAFQK6k"
CACHE_DRIVER
"file"
SESSION_DRIVER
"file"
QUEUE_DRIVER
"sync"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp.yandex.ru"
MAIL_PORT
"465"
MAIL_USERNAME
"uglovstom@yandex.ru"
MAIL_PASSWORD
"xlfatmiejmifpfnw"
MAIL_ENCRYPTION
"ssl"
Key Value
APP_ENV
"dev"
APP_DEBUG
"true"
APP_KEY
"base64:F25FFXG6IMCphwtV8JXuUSobjyEh4PJIQRoxOvJkcG4="
APP_URL
"https://partner-med.com"
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"partner-med"
DB_USERNAME
"root"
DB_PASSWORD
"THDxJKPyeAFQK6k"
CACHE_DRIVER
"file"
SESSION_DRIVER
"file"
QUEUE_DRIVER
"sync"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp.yandex.ru"
MAIL_PORT
"465"
MAIL_USERNAME
"uglovstom@yandex.ru"
MAIL_PASSWORD
"xlfatmiejmifpfnw"
MAIL_ENCRYPTION
"ssl"
0. Whoops\Handler\PrettyPageHandler