ErrorException {#688
  #message: "Trying to get property 'id' of non-object"
  #code: 0
  #file: "/home/vsinew/public_html/app/Services/CategoryService.php"
  #line: 69
  #severity: E_NOTICE
  trace: {
    /home/vsinew/public_html/app/Services/CategoryService.php:69 {if ( $index == count($slugs) - 1 ) {\r    $category = $categories[] = Category::whereHas("minipages")->whereParentId($category->id)->whereSlug($slug)->first();\r} else {\r
      arguments: {
        $level: 8
        $message: "Trying to get property 'id' of non-object"
        $file: "/home/vsinew/public_html/app/Services/CategoryService.php"
        $line: 69
        $context: array:6 [ …6]
      }
    }
    /home/vsinew/public_html/app/Http/Controllers/DefaultController.php:321 {\r    return $this->categoryService->show($slug);\r}\r
      arguments: {
        $slug: "zapornice"
      }
    }
    App\Http\Controllers\DefaultController->getAll() {}
    /home/vsinew/public_html/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:1 [ …1]
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45 {if (method_exists($controller, 'callAction')) {    return $controller->callAction($method, $parameters);}
      arguments: {
        $method: "getAll"
        $parameters: array:1 [ …1]
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:212 {return $this->controllerDispatcher()->dispatch(    $this, $this->getController(), $this->getControllerMethod());
      arguments: {
        $route: Route {#388 …}
        $controller: DefaultController {#417 …}
        $method: "getAll"
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:169 {if ($this->isControllerAction()) {    return $this->runController();}
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:665 {return $this->prepareResponse(    $request, $route->run());
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {try {    return $destination($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/app/Http/Middleware/CheckDomain.php:1 {
      › 
      › <?php namespace App\Http\Middleware;use App;use Closure;class CheckDomain {    /**     * @param $request     * @param Closure $next     * @return mixed     */    public function handle($request, Closure $next)    {        App::setLocale("si");                return $next($request);    }}arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/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 {#391 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/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 {#391 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:68 {) {    return $this->addCookieToResponse($request, $next($request));}
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/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 {#391 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/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 {#391 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:63 {
      › 
      › $response = $next($request);arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/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 {#391 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {{    $response = $next($request);arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/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 {#391 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:66 {{    return $this->encrypt($next($this->decrypt($request)));}
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/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 {#391 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
      › 
      ›     return $pipeline($this->passable);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:667 {                        );                    });}
      arguments: {
        $destination: Closure {#412 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:642 {return $this->prepareResponse($request,    $this->runRouteWithinStack($route, $request));
      arguments: {
        $route: Route {#388 …}
        $request: Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:608 {{    return $this->runRoute($request, $this->findRoute($request));}
      arguments: {
        $request: Request {#42 …}
        $route: Route {#388 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:597 {
      › 
      ›     return $this->dispatchToRoute($request);}
      arguments: {
        $request: Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 {
      › 
      ›     return $this->router->dispatch($request);};
      arguments: {
        $request: Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {try {    return $destination($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/fideloper/proxy/src/TrustProxies.php:57 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/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 {#391 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/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 {#391 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/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 {#391 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/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 {#391 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/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 {#391 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
      › 
      ›     return $pipeline($this->passable);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 {                ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)                ->then($this->dispatchToRouter());}
      arguments: {
        $destination: Closure {#22 …}
      }
    }
    /home/vsinew/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
      › 
      ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
      arguments: {
        $request: Request {#42 …}
      }
    }
    /home/vsinew/public_html/public/index.php:55 {$response = $kernel->handle(    $request = Illuminate\Http\Request::capture());
      arguments: {
        $request: Request {#42 …}
      }
    }
  }
}