-
-
Notifications
You must be signed in to change notification settings - Fork 508
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
#760 - exclude http methods from processing to solve 'POST not working' issue #762
Conversation
… working' issue
@iwasherefirst2 , please make a review and approve or give your feedback, I can explain (defend) to you my changes or can correct code or readme if needed |
I like this change, because redirecting a post request is confusing and noone wants that. This will prevent POST is not working and MethodNotAllowedHttpException issues. Only remark from me is that I still think its good practice to localize all action routes. Imagine you have a post request to change your password. This will trigger an email an the email text depends on your locale. If you have no locale in the url, the default locale will be taken. Because of that, I think you on the save side if you always just localize your action routes. And that is the downside of this MR, if you forget to localize your post/put/delete route, you won't be noticed by one of the above issues. Thus for me, I would probably keep I think the only thing we may discuss here, what we agree on as the default value for |
|
I was thinking of the default Laravel password reset function. You start with a GET request where you only enter your email. From there, you have a post request to the PasswordForgetController. This triggers an email. Now in English you want your Email to be like this:
However a German user would expect:
If you don't localize your post route for the PasswordForgetController, this email won't be localized. |
Oh, I see |
This issue is not yet deployed on packagist ? @iwasherefirst2 @mcamara |
I've merged it and will create a new version, thanks for your help! |
… working' issue (mcamara#762) Co-authored-by: Ilya Kolesnikov <ivkol@mail.ru> (cherry picked from commit c71bb11)
#760 - exclude http methods from processing to solve 'POST not working' issue