in

Parameter must be an array or an object that implements Countable

ErrorException: count(): Parameter must be an array or an object that implements Countable in file /var/www/alo-media-potportali/zenski-magazin/routes/web.php on line 40

#0 /var/www/alo-media-potportali/zenski-magazin/routes/web.php(40): IlluminateFoundationBootstrapHandleExceptions->handleError()
#1 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(423): IlluminateRoutingRouteFileRegistrar->{closure}()
#2 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(382): IlluminateRoutingRouter->loadRoutes()
#3 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php(135): IlluminateRoutingRouter->group()
#4 /var/www/alo-media-potportali/zenski-magazin/routes/web.php(190): IlluminateRoutingRouteRegistrar->group()
#5 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php(35): require('/var/www/alo-me...')
#6 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(425): IlluminateRoutingRouteFileRegistrar->register()
#7 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(382): IlluminateRoutingRouter->loadRoutes()
#8 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php(135): IlluminateRoutingRouter->group()
#9 /var/www/alo-media-potportali/zenski-magazin/app/Providers/RouteServiceProvider.php(43): IlluminateRoutingRouteRegistrar->group()
#10 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): AppProvidersRouteServiceProvider->AppProviders{closure}()
#11 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): IlluminateContainerBoundMethod::IlluminateContainer{closure}()
#12 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(81): IlluminateContainerUtil::unwrapIfClosure()
#13 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): IlluminateContainerBoundMethod::callBoundMethod()
#14 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Container/Container.php(614): IlluminateContainerBoundMethod::call()
#15 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php(120): IlluminateContainerContainer->call()
#16 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php(45): IlluminateFoundationSupportProvidersRouteServiceProvider->loadRoutes()
#17 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): IlluminateFoundationSupportProvidersRouteServiceProvider->IlluminateFoundationSupportProviders{closure}()
#18 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): IlluminateContainerBoundMethod::IlluminateContainer{closure}()
#19 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(81): IlluminateContainerUtil::unwrapIfClosure()
#20 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): IlluminateContainerBoundMethod::callBoundMethod()
#21 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Container/Container.php(614): IlluminateContainerBoundMethod::call()
#22 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php(113): IlluminateContainerContainer->call()
#23 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(917): IlluminateSupportServiceProvider->callBootedCallbacks()
#24 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(895): IlluminateFoundationApplication->bootProvider()
#25 [internal function]: IlluminateFoundationApplication->IlluminateFoundation{closure}()
#26 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(896): array_walk()
#27 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): IlluminateFoundationApplication->boot()
#28 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(237): IlluminateFoundationBootstrapBootProviders->bootstrap()
#29 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(152): IlluminateFoundationApplication->bootstrapWith()
#30 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(136): IlluminateFoundationHttpKernel->bootstrap()
#31 /var/www/alo-media-potportali/zenski-magazin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): IlluminateFoundationHttpKernel->sendRequestThroughRouter()
#32 /var/www/alo-media-potportali/zenski-magazin/public/index.php(70): IlluminateFoundationHttpKernel->handle()
#33 {main}