Whoops, looks like something went wrong.

1/1 ErrorException in BookController.php line 28: Trying to get property of non-object

  1. in BookController.php line 28
  2. at HandleExceptions->handleError('8', 'Trying to get property of non-object', '/home/veritkqb/app/Http/Controllers/BookController.php', '28', array('prodId' => '15', 'allGenres' => object(Collection), 'booksByAuthor' => array(), 'newBooksByAuthor' => null, 'book' => null)) in BookController.php line 28
  3. at BookController->getProdById('15')
  4. at call_user_func_array(array(object(BookController), 'getProdById'), array('prodId' => '15')) in Controller.php line 55
  5. at Controller->callAction('getProdById', array('prodId' => '15')) in ControllerDispatcher.php line 44
  6. at ControllerDispatcher->dispatch(object(Route), object(BookController), 'getProdById') in Route.php line 189
  7. at Route->runController() in Route.php line 144
  8. at Route->run(object(Request)) in Router.php line 642
  9. at Router->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 53
  10. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in SubstituteBindings.php line 41
  11. at SubstituteBindings->handle(object(Request), object(Closure)) in Pipeline.php line 137
  12. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  13. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in VerifyCsrfToken.php line 65
  14. at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 137
  15. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  16. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
  17. at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 137
  18. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  19. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in StartSession.php line 64
  20. at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 137
  21. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  22. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
  23. at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 137
  24. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  25. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in EncryptCookies.php line 59
  26. at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 137
  27. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  28. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 104
  29. at Pipeline->then(object(Closure)) in Router.php line 644
  30. at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 618
  31. at Router->dispatchToRoute(object(Request)) in Router.php line 596
  32. at Router->dispatch(object(Request)) in Kernel.php line 268
  33. at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php line 53
  34. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 46
  35. at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 137
  36. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  37. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 104
  38. at Pipeline->then(object(Closure)) in Kernel.php line 150
  39. at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 117
  40. at Kernel->handle(object(Request)) in index.php line 55