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', 'url' => 'https://free.currencyconverterapi.com/api/v5/convert?q=ZAR_USD', 'ch' => resource, 're' => '{"query":{"count":1},"results":{"ZAR_USD":{"id":"ZAR_USD","val":0.070326,"to":"USD","fr":"ZAR"}}}', 'results' => object(stdClass), 'rate' => '0.070326', 'allGenres' => object(Collection), 'booksByAuthor' => array(), 'newBooksByAuthor' => null, 'book' => null, 'http_response_header' => array('HTTP/1.1 200 OK', 'Date: Fri, 16 Nov 2018 10:00:25 GMT', 'Content-Type: application/json; charset=utf-8', 'Content-Length: 97', 'Connection: close', 'Set-Cookie: __cfduid=d2003c94c0f9c0659f637c324274604571542362425; expires=Sat, 16-Nov-19 10:00:25 GMT; path=/; domain=.currencyconverterapi.com; HttpOnly', 'X-Powered-By: Express', 'Access-Control-Allow-Origin: *', 'Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept', 'X-Content-Type-Options: nosniff', 'ETag: W/"61-upbLxwNl5r4nzuA2lmysrvaXOu4"', 'Set-Cookie: express:sess=eyJwYXNzcG9ydCI6e319; path=/; secure; httponly', 'Set-Cookie: express:sess.sig=iHCK1XzVLuv2r-uApwd3wdb3DrI; path=/; secure; httponly', 'Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', 'Server: cloudflare', 'CF-RAY: 47a91c44fa2f5657-JNB'))) 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