Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

route name #198

Open
mitisa opened this issue Jan 13, 2022 · 0 comments
Open

route name #198

mitisa opened this issue Jan 13, 2022 · 0 comments

Comments

@mitisa
Copy link

mitisa commented Jan 13, 2022

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();
}

`return Container::getInstance()->make($abstract, $parameters);`

}
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant