Whoops, looks like something went wrong.

1/1 ErrorException in Builder.php line 1225: count(): Parameter must be an array or an object that implements Countable

  1. in Builder.php line 1225
  2. at HandleExceptions->handleError('2', 'count(): Parameter must be an array or an object that implements Countable', '/customers/5/3/0/promotielutjegast.nl/httpd.www/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php', '1225', array('scope' => array(object(NewsItem), 'scopePublished'), 'parameters' => array(object(Builder)), 'query' => object(Builder)))
  3. at count(null) in Builder.php line 1225
  4. at Builder->callScope(array(object(NewsItem), 'scopePublished'), array(object(Builder))) in Builder.php line 1460
  5. at Builder->__call('published', array())
  6. at call_user_func_array(array(object(Builder), 'published'), array()) in compiled.php line 11638
  7. at Model->__call('published', array())
  8. at call_user_func_array(array(object(NewsItem), 'published'), array()) in compiled.php line 11643
  9. at Model::__callStatic('published', array()) in FrontendController.php line 31
  10. at FrontendController->news()
  11. at call_user_func_array(array(object(FrontendController), 'news'), array()) in compiled.php line 9408
  12. at Controller->callAction('news', array()) in compiled.php line 9435
  13. at ControllerDispatcher->dispatch(object(Route), object(FrontendController), 'news') in compiled.php line 8493
  14. at Route->runController() in compiled.php line 8474
  15. at Route->run(object(Request)) in compiled.php line 8183
  16. at Router->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 53
  17. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in OnlineMiddleware.php line 28
  18. at OnlineMiddleware->handle(object(Request), object(Closure)) in compiled.php line 9893
  19. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  20. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 10001
  21. at SubstituteBindings->handle(object(Request), object(Closure)) in compiled.php line 9893
  22. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  23. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 3164
  24. at VerifyCsrfToken->handle(object(Request), object(Closure)) in compiled.php line 9893
  25. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  26. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 13545
  27. at ShareErrorsFromSession->handle(object(Request), object(Closure)) in compiled.php line 9893
  28. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  29. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 11968
  30. at StartSession->handle(object(Request), object(Closure)) in compiled.php line 9893
  31. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  32. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 13291
  33. at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in compiled.php line 9893
  34. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  35. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 13228
  36. at EncryptCookies->handle(object(Request), object(Closure)) in compiled.php line 9893
  37. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  38. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 9878
  39. at Pipeline->then(object(Closure)) in compiled.php line 8184
  40. at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 8175
  41. at Router->dispatchToRoute(object(Request)) in compiled.php line 8166
  42. at Router->dispatch(object(Request)) in compiled.php line 6321
  43. at Facade::__callStatic('dispatch', array(object(Request))) in FrontendController.php line 59
  44. at FrontendController->menu('nieuws')
  45. at call_user_func_array(array(object(FrontendController), 'menu'), array('menu' => 'nieuws')) in compiled.php line 9408
  46. at Controller->callAction('menu', array('menu' => 'nieuws')) in compiled.php line 9435
  47. at ControllerDispatcher->dispatch(object(Route), object(FrontendController), 'menu') in compiled.php line 8493
  48. at Route->runController() in compiled.php line 8474
  49. at Route->run(object(Request)) in compiled.php line 8183
  50. at Router->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 53
  51. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in OnlineMiddleware.php line 28
  52. at OnlineMiddleware->handle(object(Request), object(Closure)) in compiled.php line 9893
  53. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  54. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 10001
  55. at SubstituteBindings->handle(object(Request), object(Closure)) in compiled.php line 9893
  56. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  57. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 3164
  58. at VerifyCsrfToken->handle(object(Request), object(Closure)) in compiled.php line 9893
  59. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  60. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 13545
  61. at ShareErrorsFromSession->handle(object(Request), object(Closure)) in compiled.php line 9893
  62. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  63. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 11968
  64. at StartSession->handle(object(Request), object(Closure)) in compiled.php line 9893
  65. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  66. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 13291
  67. at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in compiled.php line 9893
  68. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  69. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 13228
  70. at EncryptCookies->handle(object(Request), object(Closure)) in compiled.php line 9893
  71. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  72. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 9878
  73. at Pipeline->then(object(Closure)) in compiled.php line 8184
  74. at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 8175
  75. at Router->dispatchToRoute(object(Request)) in compiled.php line 8166
  76. at Router->dispatch(object(Request)) in compiled.php line 2471
  77. at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php line 53
  78. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 3226
  79. at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in compiled.php line 9893
  80. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
  81. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 9878
  82. at Pipeline->then(object(Closure)) in compiled.php line 2415
  83. at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2399
  84. at Kernel->handle(object(Request)) in index.php line 53