This PR adds a new User module to the Laravel application. The User module follows the same structure as the existing modules, with a config file, a controller, a model, views, and routing. The User module handles the logic related to users in the application.
Summary
Created a config.php file for the User module in the app/Modules/User directory. The config file defines the configuration for the User module, including the base model, route, title, columns, and validation rules.
Created a UserController.php file in the app/Modules/User/Controllers directory. The UserController class extends the DashboardController class and handles the logic for the User module.
Created a User.php model in the app/Modules/User/Models directory. The User class extends the BaseModel class and represents the users table in the database.
Added routing for the User module in the routes/web.php file. The routes handle the different actions for viewing, creating, updating, and deleting users.
Please review and merge this PR to add the User module to the Laravel application.
Fixes #4.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/user-module
🎉 Latest improvements to Sweep:
Use Sweep Map to break large issues into smaller sub-issues, perfect for large tasks like "Sweep (map): migrate from React class components to function components"
Getting Sweep to format before committing! Check out Sweep Sandbox Configs to set it up.
We released a demo of our chunker, where you can find the corresponding blog and code.
💡 To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
Description
This PR adds a new User module to the Laravel application. The User module follows the same structure as the existing modules, with a config file, a controller, a model, views, and routing. The User module handles the logic related to users in the application.
Summary
config.php
file for the User module in theapp/Modules/User
directory. The config file defines the configuration for the User module, including the base model, route, title, columns, and validation rules.UserController.php
file in theapp/Modules/User/Controllers
directory. TheUserController
class extends theDashboardController
class and handles the logic for the User module.User.php
model in theapp/Modules/User/Models
directory. TheUser
class extends theBaseModel
class and represents the users table in the database.routes/web.php
file. The routes handle the different actions for viewing, creating, updating, and deleting users.Please review and merge this PR to add the User module to the Laravel application.
Fixes #4.
To checkout this PR branch, run the following command in your terminal:
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: