Level 39
Route::get() will only respond to GET requests (e.g: loading a view)
Route::any() will match all REST HTTP verbs. e.g: GET, POST, PUT, PATCH, DELETE, OPTIONS
3 likes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
im trying to understand the difference between Route::get and Route::any but was not able to understand it fully after reading the Laravel documentation. could you guys explain it for me, please?
Route::get() will only respond to GET requests (e.g: loading a view)
Route::any() will match all REST HTTP verbs. e.g: GET, POST, PUT, PATCH, DELETE, OPTIONS
Please or to participate in this conversation.