-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Currently, multiple routes in the project use separate controllers for each CRUD action.
For example:
- User: IndexController, CreateController, StoreController, ShowController, EditController, UpdateController, DeleteController
- Category: IndexController, CreateController, etc.
- Post: IndexController, CreateController, etc.
This approach leads to many small controllers and repetitive route definitions.
Proposal:
- Combine each resource's controllers into a single Laravel Resource Controller (e.g., UserController, CategoryController, PostController)
- Use Route::resource() to define all routes
- This will simplify route management, reduce boilerplate, and improve maintainability
gomzyakov
Metadata
Metadata
Assignees
Labels
No labels