-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
How to override route helper? #67
Comments
Hi, Thanks for reporting this issue. I think I will have to let people add the helper functions manually instead of automatically. |
Hello, Since you have already included that package, I gave it a try within my composer as well, I did the same config as you, it does seem to "prioritize" my helpers , earlier it was somewhere at the bottom, now it loads it second , while your package helper is first, so its not picking my helper first. Screenshot from composer autoloader files list |
The only solution I can come up with so far is to instruct people to I don't like it, but it seems to be the only way to override Laravel's helpers without using the |
Hello, Thanks, I ended up with the same solution. Cheers!! |
Hello,
Firstly, thanks for this awesome package.
It's working fine amazing, but I need to override the route helper function.
I see you have added "if( !function_exists ('route'))" to your helper, however, If i declare the same route function in my own laravel application, it gives an error saying its already declared in this package.
So, question is, how can I override this?
https://github.com/codezero-be/laravel-localized-routes/blob/master/src/helpers.php
The text was updated successfully, but these errors were encountered: