Chron
121
2
Laravel

Having two post request with different route name prefixes

Posted 3 months ago by Chron

Here's my web.php:

Route::post('schedule', '[email protected]')->name('schedule.store'); //stores schedule
Route::post('schedule', '[email protected]')->name('schedule.toggle'); //temporarily disabling schedule

I noticed that toggle overrides store when I looked it up using r:l, how can I prevent doing that?

Please sign in or create an account to participate in this conversation.