ErrorException {#571
  #message: "Trying to get property 'id_category' of non-object"
  #code: 0
  #file: "/home/racer/domains/racerlighting.com/public_html/routes/web.php"
  #line: 307
  #severity: E_NOTICE
  trace: {
    /home/racer/domains/racerlighting.com/public_html/routes/web.php:307 {
      Illuminate\Routing\RouteFileRegistrar->{closure} …
      › $category =  \App\Category::where('category_name_th','like',$cat)->orwhere('category_name_en','like',$cat)->first();$orderproduct = \App\Product::where('product_display',0)->where('id_category',$category->id_category)                                                        ->where('sort','!=',NULL)
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:205 {
      Illuminate\Routing\Route->runCallable() …
      › return $callable(...array_values($this->resolveMethodDependencies(    $this->parametersWithoutNulls(), new ReflectionFunction($this->action['uses']))));
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:179 {
      Illuminate\Routing\Route->run() …
      › 
      ›     return $this->runCallable();} catch (HttpResponseException $e) {
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:681 {
      Illuminate\Routing\Router->Illuminate\Routing\{closure} …
      › return $this->prepareResponse(    $request, $route->run());
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:130 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › try {    return $destination($passable);} catch (Exception $e) {
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 {
      Illuminate\Routing\Middleware\SubstituteBindings->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:78 {
      Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle($request, Closure $next) …
      › ) {    return tap($next($request), function ($response) use ($request) {        if ($this->shouldAddXsrfTokenCookie()) {
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
      Illuminate\View\Middleware\ShareErrorsFromSession->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:56 {
      Illuminate\Session\Middleware\StartSession->handle($request, Closure $next) …
      › 
      › $response = $next($request);}
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {
      Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle($request, Closure $next) …
      › {    $response = $next($request);}
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67 {
      Illuminate\Cookie\Middleware\EncryptCookies->handle($request, Closure $next) …
      › {    return $this->encrypt($next($this->decrypt($request)));}
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:105 {
      Illuminate\Pipeline\Pipeline->then(Closure $destination) …
      › 
      ›     return $pipeline($this->passable);}
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:683 {
      Illuminate\Routing\Router->runRouteWithinStack(Route $route, Request $request) …
      ›                         );                    });}
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:658 {
      Illuminate\Routing\Router->runRoute(Request $request, Route $route) …
      › return $this->prepareResponse($request,    $this->runRouteWithinStack($route, $request));
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:624 {
      Illuminate\Routing\Router->dispatchToRoute(Request $request) …
      › {    return $this->runRoute($request, $this->findRoute($request));}
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:613 {
      Illuminate\Routing\Router->dispatch(Request $request) …
      › 
      ›     return $this->dispatchToRoute($request);}
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:170 {
      Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure} …
      › 
      ›     return $this->router->dispatch($request);};
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:130 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › try {    return $destination($passable);} catch (Exception $e) {
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
      Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
      Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
      Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:63 {
      Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/fideloper/proxy/src/TrustProxies.php:57 {
      Fideloper\Proxy\TrustProxies->handle(Request $request, Closure $next) …
      › 
      ›     return $next($request);}
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:105 {
      Illuminate\Pipeline\Pipeline->then(Closure $destination) …
      › 
      ›     return $pipeline($this->passable);}
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:145 {
      Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
      ›                 ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)                ->then($this->dispatchToRouter());}
    }
    /home/racer/domains/racerlighting.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110 {
      Illuminate\Foundation\Http\Kernel->handle($request) …
      › 
      ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
    }
    /home/racer/domains/racerlighting.com/public_html/index.php:55 {$response = $kernel->handle(\r    $request = Illuminate\Http\Request::capture()\r);\r
    }
  }
}