Whoops, looks like something went wrong.

1/1 ErrorException in CustomerController.php line 336: readfile(): Filename cannot be empty

  1. in CustomerController.php line 336
  2. at HandleExceptions->handleError('2', 'readfile(): Filename cannot be empty', '/var/www/production/app/Http/Controllers/Front/Customer/CustomerController.php', '336', array('brandSlug' => 'armapr', 'id' => '15844', 'document' => object(Document), 'mainUrl' => ''))
  3. at readfile('') in CustomerController.php line 336
  4. at CustomerController->documentDownload('armapr', '15844')
  5. at call_user_func_array(array(object(CustomerController), 'documentDownload'), array('brandSlug' => 'armapr', 'id' => '15844')) in Controller.php line 256
  6. at Controller->callAction('documentDownload', array('brandSlug' => 'armapr', 'id' => '15844')) in ControllerDispatcher.php line 164
  7. at ControllerDispatcher->call(object(CustomerController), object(Route), 'documentDownload') in ControllerDispatcher.php line 112
  8. at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
  10. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  11. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  12. at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 114
  13. at ControllerDispatcher->callWithinStack(object(CustomerController), object(Route), object(Request), 'documentDownload') in ControllerDispatcher.php line 68
  14. at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\Front\Customer\CustomerController', 'documentDownload') in Route.php line 203
  15. at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
  16. at Route->run(object(Request)) in Router.php line 708
  17. at Router->Illuminate\Routing\{closure}(object(Request))
  18. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
  19. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  20. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  21. at Pipeline->then(object(Closure)) in Router.php line 710
  22. at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 674
  23. at Router->dispatchToRoute(object(Request)) in Router.php line 635
  24. at Router->dispatch(object(Request)) in Kernel.php line 236
  25. at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
  26. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
  27. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
  28. at ShareErrorsFromSession->handle(object(Request), object(Closure))
  29. at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  30. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62
  31. at StartSession->handle(object(Request), object(Closure))
  32. at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  33. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
  34. at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
  35. at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  36. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59
  37. at EncryptCookies->handle(object(Request), object(Closure))
  38. at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  39. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
  40. at CheckForMaintenanceMode->handle(object(Request), object(Closure))
  41. at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  42. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  43. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  44. at Pipeline->then(object(Closure)) in Kernel.php line 122
  45. at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
  46. at Kernel->handle(object(Request)) in index.php line 54