You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OPTIONS verb is missing from Route::any() and it's not handled by any().
To do that you have to write: Route::match(['get', 'head', 'options', 'post', 'put', 'patch', 'delete'], 'orders/{customer_id}', 'OrdersController@getOrders');
* Updated route any to include all supported verbs
added OPTIONS as route any which to be referenced from own static supported verbs
* Update Router.php
* Update Router.php
Affected versions:
Description:
OPTIONS verb is missing from
Route::any()
and it's not handled byany()
.To do that you have to write:
Route::match(['get', 'head', 'options', 'post', 'put', 'patch', 'delete'], 'orders/{customer_id}', 'OrdersController@getOrders');
instead of
Route::any('orders/{customer_id}', 'OrdersController@getOrders');
Files:
vendor/laravel/framework/src/Illuminate/Routing/Router.php
The text was updated successfully, but these errors were encountered: