tejassoni / laravel-breeze-web-guard-email-verification

Laravel multiple Admin and User roles authentication using Laravel Breeze Where User and Admin roles on registration sent verification link to their registered email address. After email verified should able to login system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

Laravel multiple Admin and User roles authentication using Laravel Breeze Where User and Admin roles on registration sent verification link to their registered email address. After email verified should able to login system.

Server Requirements

Setup Basic Commands

  1. git clone repository_url
  2. cd laravel-breeze-web-guard-email-verification
  3. composer update
  4. create database and configure .env database connection
  5. php artisan migrate
  6. php artisan db:seed
  7. php artisan serve

Routes Lists

  1. Auth Routes

Credentials Details

User Role

Admin Role

Project Requirement

  1. Authentication Using Laravel Web Gaurd :
  2. Admin Role Requirement
    • Admin Registration Fields
    • Name : [ Validation Rules : Accept only strings and space, Required ]
    • Email : [ Validation Rules : Accept only valid email address, Required ]
    • Password : [ Validation Rules : Accept only valid password min 8 lenght with alphanumeric, Required ]
    • Confirm Password : [ Validation Rules : should be same as Password field, Required ]
    • On Registration button click send email verification link to registered email address
    • Generate 5 dummy sample for Admin role using Factory and Seeder
    • Follow PHP/Laravel code standards
    • Make Seprate dashboard view ,admin table and Admin model
    • Admin Login Fields
    • Email : [ Validation Rules : Accept only valid email address, Required ]
    • Password : [ Validation Rules : Accept only valid password min 8 length with alphanumeric, Required ]
    • On Login button click redirect to Admin dashboard page if credential is validated
  3. User Role Requirement
    • User Registration Fields
    • Name : [ Validation Rules : Accept only strings and space, Required ]
    • Email : [ Validation Rules : Accept only valid email address, Required ]
    • Password : [ Validation Rules : Accept only valid password min 8 lenght with alphanumeric, Required ]
    • Confirm Password : [ Validation Rules : should be same as Password field, Required ]
    • On Registration button click send email verification link to registered email address
    • Generate 5 dummy sample for User role using Factory and Seeder
    • Follow PHP/Laravel code standards
    • Make Seprate dashboard view ,user table and User model
    • User Login Fields
    • Email : [ Validation Rules : Accept only valid email address, Required ]
    • Password : [ Validation Rules : Accept only valid password min 8 length with alphanumeric, Required ]
    • On Login button click redirect to User home page if credential is validated

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 :

a) https://www.youtube.com/watch?v=yXjHYTFRTC8 b) https://codeanddeploy.com/blog/laravel/how-to-implement-laravel-8-email-verification c) https://laravel.com/docs/10.x/verification d) https://cerwyn.medium.com/laravel-ui-email-verification-part-i-f40079335e99 e) https://www.youtube.com/watch?v=9aRyMYF0m64

Search Key

  1. KEY : VERIFYEMAIL

About

Laravel multiple Admin and User roles authentication using Laravel Breeze Where User and Admin roles on registration sent verification link to their registered email address. After email verified should able to login system.


Languages

Language:PHP 62.1%Language:Blade 37.3%Language:JavaScript 0.5%Language:CSS 0.0%