1
What is the real benefit of using Controller Resource in Laravel? It is possible to observe that the route file gets cleaner, since the controller methods are called based on the call routes and verbs, but the only benefit would be organization?
1
What is the real benefit of using Controller Resource in Laravel? It is possible to observe that the route file gets cleaner, since the controller methods are called based on the call routes and verbs, but the only benefit would be organization?
1
The benefit of using resource-type controllers is in the statement itself and in the context.
Since this type of single route declaration creates multiple routes to handle a variety of actions from an HTTP request.
And by convention, the resource type controller already offers all actions named in a way that contextualizes with the actions performed in the creation, update, query and deletion of data.
It can still be said that the resource controller is a predefined data structure to manage common CRUD operations. (Create, Read, Update, Delete)
Browser other questions tagged laravel
You are not signed in. Login or sign up in order to post.