ErrorException: Trying to get property 'id' of non-object in file D:\Inetpub\vhosts\greethailand.com\httpdocs\local\app\Http\Controllers\FontendController.php on line 415 #0 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\app\Http\Controllers\FontendController.php(415): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() #1 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Routing\Controller.php(54): App\Http\Controllers\FontendController->products() #2 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction() #3 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Routing\Route.php(239): Illuminate\Routing\ControllerDispatcher->dispatch() #4 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Routing\Route.php(196): Illuminate\Routing\Route->runController() #5 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Routing\Router.php(685): Illuminate\Routing\Route->run() #6 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(128): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Routing\Middleware\SubstituteBindings.php(41): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(167): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php(78): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(167): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle() #11 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #12 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(167): Illuminate\View\Middleware\ShareErrorsFromSession->handle() #13 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(62): Illuminate\Session\Middleware\StartSession->handleStatefulRequest() #15 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(167): Illuminate\Session\Middleware\StartSession->handle() #16 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #17 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(167): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle() #18 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #19 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(167): Illuminate\Cookie\Middleware\EncryptCookies->handle() #20 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #21 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Routing\Router.php(687): Illuminate\Pipeline\Pipeline->then() #22 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Routing\Router.php(662): Illuminate\Routing\Router->runRouteWithinStack() #23 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Routing\Router.php(628): Illuminate\Routing\Router->runRoute() #24 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Routing\Router.php(617): Illuminate\Routing\Router->dispatchToRoute() #25 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(165): Illuminate\Routing\Router->dispatch() #26 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(128): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #27 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #28 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(167): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #29 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #30 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(167): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #31 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #33 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php(63): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #34 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(167): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle() #35 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\fruitcake\laravel-cors\src\HandleCors.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(167): Fruitcake\Cors\HandleCors->handle() #37 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\fideloper\proxy\src\TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(167): Fideloper\Proxy\TrustProxies->handle() #39 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #40 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(140): Illuminate\Pipeline\Pipeline->then() #41 D:\Inetpub\vhosts\greethailand.com\httpdocs\local\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(109): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #42 D:\Inetpub\vhosts\greethailand.com\httpdocs\index.php(58): Illuminate\Foundation\Http\Kernel->handle() #43 {main}