ErrorException {#719
  #message: "Trying to get property 'id' of non-object"
  #code: 0
  #file: "/home/urbanp/public_html/project/app/Http/Controllers/FrontEndController.php"
  #line: 944
  #severity: E_NOTICE
  trace: {
    /home/urbanp/public_html/project/app/Http/Controllers/FrontEndController.php:944 {    $catalogFather = Catalog::where('slug', '=', $catalogFather->slug)->where("id", ">", $catalogFather->id)->first();    $catalog = Catalog::where('slug', '=', $category)->where("parent_id", $catalogFather->id)->first();}
      arguments: {
        $level: 8
        $message: "Trying to get property 'id' of non-object"
        $file: "/home/urbanp/public_html/project/app/Http/Controllers/FrontEndController.php"
        $line: 944
        $context: array:6 [ …6]
      }
    }
    App\Http\Controllers\FrontEndController->shop() {}
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54 {{    return call_user_func_array([$this, $method], $parameters);}
      arguments: {
        $function_name: array:2 [ …2]
        $parameters: array:4 [ …4]
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45 {if (method_exists($controller, 'callAction')) {    return $controller->callAction($method, $parameters);}
      arguments: {
        $method: "shop"
        $parameters: array:4 [ …4]
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Route.php:212 {return $this->controllerDispatcher()->dispatch(    $this, $this->getController(), $this->getControllerMethod());
      arguments: {
        $route: Route {#235 …}
        $controller: FrontEndController {#629 …}
        $method: "shop"
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Route.php:169 {if ($this->isControllerAction()) {    return $this->runController();}
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Router.php:665 {return $this->prepareResponse(    $request, $route->run());
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {try {    return $destination($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/app/Http/Middleware/CheckBan.php:24 {    }    return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#589 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#589 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:68 {) {    return $this->addCookieToResponse($request, $next($request));}
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#589 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#589 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/app/Http/Middleware/Language.php:33 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#589 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
      › 
      ›     return $pipeline($this->passable);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Router.php:667 {                        );                    });}
      arguments: {
        $destination: Closure {#624 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Router.php:642 {return $this->prepareResponse($request,    $this->runRouteWithinStack($route, $request));
      arguments: {
        $route: Route {#235 …}
        $request: Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Router.php:608 {{    return $this->runRoute($request, $this->findRoute($request));}
      arguments: {
        $request: Request {#42 …}
        $route: Route {#235 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Router.php:597 {
      › 
      ›     return $this->dispatchToRoute($request);}
      arguments: {
        $request: Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 {
      › 
      ›     return $this->router->dispatch($request);};
      arguments: {
        $request: Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {try {    return $destination($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:63 {
      › 
      › $response = $next($request);arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#589 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {{    $response = $next($request);arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#589 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:66 {{    return $this->encrypt($next($this->decrypt($request)));}
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#589 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/fideloper/proxy/src/TrustProxies.php:57 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#589 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#589 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#589 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#589 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#589 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
      › 
      ›     return $pipeline($this->passable);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 {                ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)                ->then($this->dispatchToRouter());}
      arguments: {
        $destination: Closure {#451 …}
      }
    }
    /home/urbanp/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
      › 
      ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
      arguments: {
        $request: Request {#42 …}
      }
    }
    /home/urbanp/public_html/project/public/index.php:55 {$response = $kernel->handle(    $request = Illuminate\Http\Request::capture());
      arguments: {
        $request: Request {#42 …}
      }
    }
  }
}