Skip to content

Laravel api's for USER's CRUD operations. Without Authentication and Resource Controller.

Notifications You must be signed in to change notification settings

tejassoni/laravel-api-usercrud

Repository files navigation

Overview

Laravel api's for USER's CRUD operations. Without Authentication and Without Resource Controller.

Server Requirements

Project Requirement

  • 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

Laravel / PHP Coding Standards

  1. Use Laravel's migration scripts for database schema and tables related to further all operations
  2. Use Laravel's factory and seeders for sample dummy data creations where required
  3. Use Laravel's validation using Request classes where required
  4. Use Laravel's Eloquent and Relationships in models where required
  5. Use camel case for function name and variable name. E.g getProductDetails() , $categoryDetails
  6. Comment on the above function with short details of that function use or purpose of function creation.
  7. Reuse the common codes using some helper class functions etc
  8. Remove unnecessary code and debug points that are not needed
  9. Avoid unnecessary loops if not required
  10. Avoid unnecessary variable creations
  11. Use PHP design patterns where required Design Patterns
  12. Normalize database tables where required Database Normalization
  13. Optimize database tables
  14. Avoid MySQL joins queries if not required
  15. Avoid MySQL sub queries if it does not require
  16. For more information, please read the document Code Standard

References

  1. https://blog.devgenius.io/rest-api-in-laravel-354d755a553a
  2. https://www.toptal.com/laravel/restful-laravel-api-tutorial
  3. https://blog.treblle.com/how-to-create-rest-api-using-laravel/
  4. https://www.youtube.com/watch?v=MT-GJQIY3EU
  5. https://www.youtube.com/watch?v=YGqCZjdgJJk
    1. Search Key

      1. KEY : USERAPICRUD

About

Laravel api's for USER's CRUD operations. Without Authentication and Resource Controller.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published