Closed mvneobux closed 3 years ago
Hi @mvneobux,
You need to setup a locales
config in your config/app.php
or publish the config file for the locales: https://github.com/chinleung/laravel-locales#configuration.
I've setup a working example that contains the following routes:
+--------------------+-----------------+
| URI | Name |
+--------------------+-----------------+
| | en.home |
| /pt-br | pt-br.home |
| pt-br/cadastrar | pt-br.register |
| pt-br/teste | pt-br.test |
| pt-br/users/{user} | pt-br.user.show |
| register | en.register |
| test | en.test |
| users/{user} | en.user.show |
+--------------------+-----------------+
Let me know how it goes. 😄
Thanks :)
My default home page route should be "en-us". However it is not working at all. When I try to access the route I get a 404 error. See:
My route:
Route::multilingual('/cadastrar', 'CadastroController@index')->name('cadastrar');
Configuration file:
Config App:
Because it does not work ?? if I change the locale to "en" then it works, but as "pt-br" it doesn't