-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Use route function everywhere #1568
Conversation
@djaiss every references to url are now handle by |
Route::post('/people/{contact}/reminders/store', 'Contacts\\RemindersController@store')->name('store'); | ||
Route::get('/people/{contact}/reminders/{reminder}/edit', 'Contacts\\RemindersController@edit')->name('edit'); | ||
Route::put('/people/{contact}/reminders/{reminder}', 'Contacts\\RemindersController@update')->name('update'); | ||
Route::delete('/people/{contact}/reminders/{reminder}', 'Contacts\\RemindersController@destroy')->name('delete'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@djaiss Is the problem you described always here (Special route to delete reminders) ? I replaced the route, and all is OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@asbiin really? Well if it works now, awesome.
@asbiin is there a main benefit for this change? I do remember on Heroku having a problem with named routes for an unknown reason. |
@djaiss The (major) benefit for this change is ... clean code, beautiful aligned code. :D |
BTW it's working, even on heroku |
@asbiin alright! If it works, let's do this. |
This pull request has been automatically locked since there |
No description provided.