Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource controller doesn't return a route, and doesn't have a middleware method. #77

Open
BenRutlandWeb opened this issue May 5, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@BenRutlandWeb
Copy link
Collaborator

Describe the bug
Using a Route::resource() method doesn't return a Route so there is no middleware method available.

@BenRutlandWeb BenRutlandWeb self-assigned this May 5, 2021
@BenRutlandWeb BenRutlandWeb added the bug Something isn't working label May 5, 2021
@BenRutlandWeb
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant