A Laravel authentication system with roles for Admin, Super Admin, and Users. It includes user registration, login, forgot password, and role-based authentication. Built with Laravel Breeze for authentication and a custom frontend for the UI.
- User Registration & Login
- Forgot Password for Users, Admins, and Super Admins
- Role-Based Authentication
- Admin Dashboard
- Super Admin Dashboard
- Custom Frontend Integration
Ensure you have the following installed:
- PHP (>= 8.0)
- Composer
- Node.js & NPM
- MySQL or any supported database
- Laravel 10+
git clone git@github.com:justEfere/multiple_auth.git
cd multi-auth-breezecomposer install
npm install && npm run buildcp .env.example .envUpdate .env with your database credentials:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database
DB_USERNAME=your_username
DB_PASSWORD=your_passwordphp artisan key:generatephp artisan migrate --seedSeeders will create the default Super Admin, Admin, and User roles.
php artisan serveIf image is not loading, run storage link
php artisan storage:linkAccess the app at: http://127.0.0.1:8000
- Super Admin: Has full access to the system.
- Admin: Manages users and content.
- User: Can register, login, and access their dashboard.
Super Admin:
Email: superadmin@example.com
Password: passwordAdmin:
Email: admin@example.com
Password: passwordUser:
Email: user@example.com
Password: passwordThe frontend is built separately and connected to Laravel Breeze for authentication. Ensure your styles and assets are properly compiled using:
npm run devIf you need to reset the database:
php artisan migrate:fresh --seedTo clear cache:
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clearThis project is open-source and available under the MIT License.