tejassoni / laravel-breeze-web-guard-user-login-email-otp2

Laravel multiple Admin and User roles authentication using Laravel Breeze Where User roles able to login via email address and sent OTP to their registered email address for login verification. Resend OTP functionality implement after timer expired

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

Laravel multiple Admin and User roles authentication using Laravel Breeze Where User roles able to login via email address and sent OTP to their registered email address for login verification. Resend OTP functionality implement after timer expired

Server Requirements

Setup Basic Commands

  1. git clone repository_url
  2. cd laravel-breeze-web-guard-user-email-otp
  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 length with alphanumeric, Required ]
    • Confirm Password : [ Validation Rules : should be same as Password field, Required ]
    • On Registration button click redirect to Admin dashboard page
    • Generate 5 dummy sample for Admin role using Factory and Seeder
    • 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 minimum 8 length with alphanumeric, Required ]
    • Confirm Password : [ Validation Rules : should be same as Password field, Required ]
    • On Registration button redirect to Login Page with successfull register message
    • Generate 5 dummy sample for User role using Factory and Seeder
    • Make Seprate dashboard view ,user table and User model
    • User Login Fields
    • Email : [ Validation Rules : Accept only valid email address, Required ]
    • On Login button click It will show Verify OTP input will be open with Enter OTP at same login page.
    • 1 minutes timer counter will shows to user
    • After 1 minutes timer counter will shows Resend OTP button to user and should able to resend 8 digit OTP at registered email
    • After 1 minutes timer counter old OTP will be expired and not allow to login with old OTP
    • On Successfull OTP verification will redirect to home page

References :

a) https://www.youtube.com/watch?v=yXjHYTFRTC8

About

Laravel multiple Admin and User roles authentication using Laravel Breeze Where User roles able to login via email address and sent OTP to their registered email address for login verification. Resend OTP functionality implement after timer expired