laravel / ideas

Issues board used for Laravel internals discussions.
939 stars 28 forks source link

Simplify multi-language setups #2571

Open aimeos opened 3 years ago

aimeos commented 3 years ago

At the moment, it's pretty hard to create multi-language setups in Laravel because you have to change every route() call in the auth templates and include ['locale' => app()->getLocale()], overwrite the e-mail generating methods and create a custom middleware that sets the locale correctly.

Very helpful would be if future versions of Laravel:

aimeos commented 3 years ago

There's also a problem with the Laravel router when mapping route variables to method arguments: https://github.com/laravel/framework/issues/36997

@taylorotwell Is there any plan to support multi-lingual routes in future versions of Laravel?

nl123 commented 3 years ago

https://laracasts.com/discuss/channels/code-review/password-reset-link-incorrect-format-and-invalid-token-laravel-57-multi-language