Skip to content

Login System SPA application with Multiple Authentication Guard use Laravel & Nextjs

License

Notifications You must be signed in to change notification settings

HeshamAdel0007/LoginSystem

Repository files navigation

LoginSystem SPA application with Multiple Authentication Guard

Laravel v11.34.2 NextJS v15.0.3

About Projects

LoginSystem is a SPA application Build By Laravel & Nextjs. use Laravel Framework to handel back-en processing. and use Nextjs to handel client side processing.

  • in this project use Multiple Authentication Guard

Guards

GuardName Model
admin Admin
publisher Publisher
customer Customer

Installation

1. Downloade Project

Run this at the command line:

git clone git@github.com:HeshamAdel0007/LoginSystem.git

2. Install Laravel

Composer install
  • Create a New .env File

  • Could Copy From Existing .env.example, Update Relevant Settings (DB_DATABASE, DB_USERNAME,.....)

  • add your url front-end & back-end

APP_URL=your_back-end_url
FRONTEND_URL=your_front-end_url
SESSION_DOMAIN=your_back-end_url/,your_front-end_url/
SANCTUM_STATEFUL_DOMAINS=your_back-end_url/,your_front-end_url/
  • Generate App Encryption Key
php artisan key:generate
  • Migrate The DataBase
php artisan migrate
  • Migrate The Seeder
php artisan db:seed
php artisan optimize:clear

2. Install Next Dashboard

  1. go to file front-end and make this steps
  • change file .env.example to .env

  • in file env add your back-end url

BACKEND_URL=your_back-end_url
  1. run this command
npm insatll
npm run dev

Features

  • Multiple Authentication Guard

Users

User Email Password
Admin admin@admin.com password
publisher publisher@publisher.com password
Customer customer@customer.com password

Package & Tools Used

  • LaravelSanctum v4.0.5

Connect With Me

Gmail logo Linkedin Logo

License

The Project licensed under the MIT license.

About

Login System SPA application with Multiple Authentication Guard use Laravel & Nextjs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published