ErrorException {#735
  #message: "Trying to get property 'id' of non-object"
  #code: 0
  #file: "/home/blossoms/public_html/app/Http/Controllers/Product/ProductsController.php"
  #line: 181
  #severity: E_NOTICE
  trace: {
    /home/blossoms/public_html/app/Http/Controllers/Product/ProductsController.php:181 {$categories = Categories::where('status', '=', '1')->where('parent_id','=',null)->get();$subCategories = Categories::where('parent_id','=',$category->id)->where('status', '=', '1')->paginate(6);// $title = isset($category->category_page_title) ? $category->category_page_title : 'Category';
      arguments: {
        $level: 8
        $message: "Trying to get property 'id' of non-object"
        $file: "/home/blossoms/public_html/app/Http/Controllers/Product/ProductsController.php"
        $line: 181
        $context: array:5 [ …5]
      }
    }
    App\Http\Controllers\Product\ProductsController->categories() {}
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:55 {{\r    return call_user_func_array([$this, $method], $parameters);\r}\r
      arguments: {
        $function_name: array:2 [ …2]
        $parameters: array:1 [ …1]
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:44 {if (method_exists($controller, 'callAction')) {\r    return $controller->callAction($method, $parameters);\r}\r
      arguments: {
        $method: "categories"
        $parameters: array:1 [ …1]
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:203 {return (new ControllerDispatcher($this->container))->dispatch(\r    $this, $this->getController(), $this->getControllerMethod()\r);\r
      arguments: {
        $route: Route {#425 …}
        $controller: ProductsController {#684 …}
        $method: "categories"
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:160 {if ($this->isControllerAction()) {\r    return $this->runController();\r}\r
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:572 {return $this->prepareResponse(\r    $request, $route->run()\r);\r
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {try {\r    return $destination($passable);\r} catch (Exception $e) {\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 {\r    return $next($request);\r}\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {\r    return $pipe->{$this->method}(...$parameters);\r};\r
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#485 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {\r    return $callable($passable);\r} catch (Exception $e) {\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:65 {) {\r    return $this->addCookieToResponse($request, $next($request));\r}\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {\r    return $pipe->{$this->method}(...$parameters);\r};\r
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#485 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {\r    return $callable($passable);\r} catch (Exception $e) {\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {\r    return $next($request);\r}\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {\r    return $pipe->{$this->method}(...$parameters);\r};\r
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#485 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {\r    return $callable($passable);\r} catch (Exception $e) {\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64 {\r$response = $next($request);\r\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {\r    return $pipe->{$this->method}(...$parameters);\r};\r
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#485 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {\r    return $callable($passable);\r} catch (Exception $e) {\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {{\r    $response = $next($request);\r\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {\r    return $pipe->{$this->method}(...$parameters);\r};\r
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#485 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {\r    return $callable($passable);\r} catch (Exception $e) {\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:59 {{\r    return $this->encrypt($next($this->decrypt($request)));\r}\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {\r    return $pipe->{$this->method}(...$parameters);\r};\r
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#485 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {\r    return $callable($passable);\r} catch (Exception $e) {\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102 {\r    return $pipeline($this->passable);\r}\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:574 {                        );\r                    });\r}\r
      arguments: {
        $destination: Closure {#505 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:533 {\r$response = $this->runRouteWithinStack($route, $request);\r\r
      arguments: {
        $route: Route {#425 …}
        $request: Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:511 {\r    return $this->dispatchToRoute($request);\r}\r
      arguments: {
        $request: Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 {\r    return $this->router->dispatch($request);\r};\r
      arguments: {
        $request: Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {try {\r    return $destination($passable);\r} catch (Exception $e) {\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30 {\r    return $next($request);\r}\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {\r    return $pipe->{$this->method}(...$parameters);\r};\r
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#485 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {\r    return $callable($passable);\r} catch (Exception $e) {\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30 {\r    return $next($request);\r}\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {\r    return $pipe->{$this->method}(...$parameters);\r};\r
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#485 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {\r    return $callable($passable);\r} catch (Exception $e) {\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {\r    return $next($request);\r}\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {\r    return $pipe->{$this->method}(...$parameters);\r};\r
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#485 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {\r    return $callable($passable);\r} catch (Exception $e) {\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:46 {\r    return $next($request);\r}\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {\r    return $pipe->{$this->method}(...$parameters);\r};\r
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#485 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {\r    return $callable($passable);\r} catch (Exception $e) {\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102 {\r    return $pipeline($this->passable);\r}\r
      arguments: {
        Request {#38 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 {                ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)\r                ->then($this->dispatchToRouter());\r}\r
      arguments: {
        $destination: Closure {#37 …}
      }
    }
    /home/blossoms/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {\r    $response = $this->sendRequestThroughRouter($request);\r} catch (Exception $e) {\r
      arguments: {
        $request: Request {#38 …}
      }
    }
    /home/blossoms/public_html/public/index.php:53 {$response = $kernel->handle(\r    $request = Illuminate\Http\Request::capture()\r);\r
      arguments: {
        $request: Request {#38 …}
      }
    }
    /home/blossoms/public_html/index.php:19 {\rrequire_once __DIR__.'/public/index.php';\rarguments: {
        "/home/blossoms/public_html/public/index.php"
      }
    }
  }
}