Open BenRutlandWeb opened 3 years ago
In addition to not working in the same way as the other routes, resource controllers don't allow for parameter naming, excluding/including methods or any other features that are/could be included on the normal routes.
A decision needs to be made as to whether the resource controller serves a big enough purpose to be worthwhile - the end result can, after all, be achieved with standard routes. Using resource controllers decrease boilerplate code, but are (currently) way less flexible.
Describe the bug Using a
Route::resource()
method doesn't return aRoute
so there is nomiddleware
method available.