Laravel api's for USER's CRUD operations. Without Authentication and Without Resource Controller.
- PHP Version => 7.4 or higher
- Laravel Version => 8 or higher
- MySQL Version => 5.7 or higher
- Implement User Rest API into Laravel Project
- User Module CRUD
- Add User Fields
- Email : [ Validation Rules : Valid email address, Required ]
- Name : [ Validation Rules : Accept only strings and space, Required ]
- Address : [ Validation Rules : Required ]
- Pincode : [ Validation Rules : Required, Max 6 digits only ]
- Mobile : [ Validation Rules : Max 10 Digits, Required ]
- Birthdate : [ Validation Rules : Required , DD-MM-YYYY, Before Today]
- Gender : [ Validation Rules : Accept only Male / Female, Required ]
- Profile Image : [ Validation Rules : Accept only JPG, PNG, Max 2 MB, Required ]
- List User Fields
- All User Fields display with paginations default 10
- Delete User Fields
- User Deleted by UserID
- Filter User Fields
- All User Fields display with paginations default 10
- Use Laravel's migration scripts for database schema and tables related to further all operations
- Use Laravel's factory and seeders for sample dummy data creations where required
- Use Laravel's validation using Request classes where required
- Use Laravel's Eloquent and Relationships in models where required
- Use camel case for function name and variable name. E.g getProductDetails() , $categoryDetails
- Comment on the above function with short details of that function use or purpose of function creation.
- Reuse the common codes using some helper class functions etc
- Remove unnecessary code and debug points that are not needed
- Avoid unnecessary loops if not required
- Avoid unnecessary variable creations
- Use PHP design patterns where required Design Patterns
- Normalize database tables where required Database Normalization
- Optimize database tables
- Avoid MySQL joins queries if not required
- Avoid MySQL sub queries if it does not require
- For more information, please read the document Code Standard