Skip to content

Build a multi-authentication system in Laravel 11 with separate guards, providers, and middlewares for user and admin dashboards. Learn to create and utilize middleware, covering guest and authenticated middleware, with a focus on admin login and user registration.

Notifications You must be signed in to change notification settings

Majid-Razzaq/laravel-multi-auth

Repository files navigation

Laravel Logo

Laravel Multi-Auth System

Features

User Dashboard

Separate user dashboard with dedicated functionality.

Admin Dashboard

Admin-specific dashboard for complete control over the system.

Multiple Authentication Guards

Different guards for users and admins to ensure secure authentication.

User Registration

Seamless registration process for users with validation and security.

Admin Login

Focused on secure login process for admins, bypassing registration.

Middleware Integration

Custom middleware for guest access, authenticated routes, and role-based access control.

Secure Authentication Mechanisms

Utilizes Laravel’s built-in authentication with enhanced security features.

Requirements

  • Laravel 11
  • PHP 8.1
  • Composer 2.x

Getting Started

  • Clone the repository.
  • Run composer install to install dependencies.
  • Set up your database configuration in the .env file.
  • Run php artisan migrate to set up the necessary tables.
  • Implement and customize as needed.
composer install
php artisan migrate
php artisan serve

About

Build a multi-authentication system in Laravel 11 with separate guards, providers, and middlewares for user and admin dashboards. Learn to create and utilize middleware, covering guest and authenticated middleware, with a focus on admin login and user registration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published