Laravel v11.34.2 NextJS v15.0.3
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
| GuardName | Model |
|---|---|
| admin | Admin |
| publisher | Publisher |
| customer | Customer |
Run this at the command line:
git clone git@github.com:HeshamAdel0007/LoginSystem.gitComposer 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:seedphp artisan optimize:clear- 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- run this command
npm insatllnpm run dev- Multiple Authentication Guard
| User | Password | |
|---|---|---|
| Admin | admin@admin.com | password |
| publisher | publisher@publisher.com | password |
| Customer | customer@customer.com | password |
- LaravelSanctum v4.0.5
The Project licensed under the MIT license.