loki
loki copied to clipboard
Use request()->segment(1) instead of route()->getPrefix()
When I need to add a prefix to some routes, like 'admin', for my backoffice, the $route->getPrefix() respond 'en/admin' instead of 'en' , is more secure to use request()->segment(1)
Using Laravel 7+
Hi! @mabasic , there is a problem with this PR?
Hi! @mabasic , there is a problem with this PR?
No problem. I need to check the changes, but haven't found the time yet. Will get back to this eventually. Thank you for your PR.