How can I get all routes in project which have GET method? I have tried:
Route::getRoutes() which gave me all routes but somehow I could not have filtered them by method.
The Route::getRoutes()->routes would be nice to have but routes is protected property and I do not see any getter.
Route::getRoutes()give you? could you not filter that result into only get? Apparently it gives you back an array so you could run it througharray_filterto get only the ones you wantRoute::getRoutes()['GET']it's a little hard to read in your comment