You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi dear
I create app and route helper method same laravel helper methods and my code this is: function app($abstract = null, array $parameters = []) { if (is_null($abstract)) { return Container::getInstance(); }
} function route($name, $parameters = [], $absolute = true) { return app('url')->route($name, $parameters, $absolute); }
but when call route and send route name for example route('profile') i have this error:
Fatal error: Uncaught ReflectionException: Class url does not exist in vendor\illuminate\container\Container.php:877
I think laravel use RoutingServiceProvider and I need provider
please help
thanks
The text was updated successfully, but these errors were encountered:
Hi dear
I create app and route helper method same laravel helper methods and my code this is:
function app($abstract = null, array $parameters = [])
{
if (is_null($abstract)) {
return Container::getInstance();
}
}
function route($name, $parameters = [], $absolute = true)
{
return app('url')->route($name, $parameters, $absolute);
}
but when call route and send route name for example route('profile') i have this error:
Fatal error: Uncaught ReflectionException: Class url does not exist in vendor\illuminate\container\Container.php:877
I think laravel use RoutingServiceProvider and I need provider
please help
thanks
The text was updated successfully, but these errors were encountered: