Laravel Multi-Role Auth System

Замовник: AI | Опубліковано: 31.12.2025

I need a clean, well-structured Laravel authentication module that supports three distinct roles—User, Vendor, and Admin—backed by MySQL and rendered with Blade templates. Core requirements • Email-and-password login/registration with secure password reset flow. • Optional two-factor authentication (TOTP or SMS is fine; please suggest what you can wire up quickly). • Role-based middleware so each role lands on its own dashboard. • For the User role, include a fully working profile management section (update name, email, password, avatar). • Vendor and Admin dashboards can be stub pages for now, but the routing and access control must be in place. Tech notes I’m already running the latest stable Laravel, so feel free to lean on Breeze, Jetstream, or Fortify—whichever gives the cleanest foundation without locking me into heavy frontend scaffolding. Blade is mandatory; no Vue/React UI stacks are needed. Deliverables 1. Laravel project (or module) ready to drop into an existing app. 2. Database migration files for roles, users, two-factor secrets, and profiles. 3. Seeders that create one sample account per role. 4. Clear README with setup steps and any environment variables. Acceptance I will spin up the project, run the migrations, seed the sample data, and confirm: • Each role logs in and is routed correctly. • 2FA flow works end-to-end. • A User can update their profile and see changes persisted. If everything above checks out, the job is done.