Skip to content
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

Problem posting post #7

Open
Greka1975 opened this issue Aug 13, 2019 · 1 comment
Open

Problem posting post #7

Greka1975 opened this issue Aug 13, 2019 · 1 comment

Comments

@Greka1975
Copy link

Greka1975 commented Aug 13, 2019

Todo bien, funciona genial, pero está en inglés y mi sitio ha de poder traducirse al castellano y catalán. Instalé el paquete dimsav/laravel-translatable y mcamara/laravel-localization. En el archivo de rutas se han de poner todas las rutas dentro de:

Route::group(['prefix' => LaravelLocalization::setLocale(),'middleware' => [ 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath' ]], function(){

});

Y aquí viene el problema, si las rutas están fuera del grupo de rutas para la traducción, funciona correctamente, pero al ponerlo dentro, por ejemplo la función que publica los posts me arroja el error:

"The GET method is not supported for this route. Supported methods: PUT."

@milon
Copy link
Owner

milon commented May 7, 2020

please write in English.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants