Bug - Generate localized route URL's using the route() helper.
nicolalazzaro opened this issue · comments
The function doesn't work as per the documentation, the problem is that it doesn't return the url with the passed locale but always takes the one currently in session/cookie, using tinker instead the url is returned without the locale passed as argument.
$url = route('about', [], true, 'locale');
Laravel Framework 8.76.2
The problem was solved by running the composer dump-autoload
command.