https://github.com/heshamadel0007/loginsystem
Login System SPA application with Multiple Authentication Guard use Laravel & Nextjs
https://github.com/heshamadel0007/loginsystem
api authentication axios environment javascript laravel mysql nextjs nodejs php react singlepageapplication sunctum tailwindcss
Last synced: about 2 months ago
JSON representation
Login System SPA application with Multiple Authentication Guard use Laravel & Nextjs
- Host: GitHub
- URL: https://github.com/heshamadel0007/loginsystem
- Owner: HeshamAdel0007
- License: mit
- Created: 2024-12-04T12:58:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-04T13:13:57.000Z (over 1 year ago)
- Last Synced: 2025-02-06T07:46:07.443Z (over 1 year ago)
- Topics: api, authentication, axios, environment, javascript, laravel, mysql, nextjs, nodejs, php, react, singlepageapplication, sunctum, tailwindcss
- Language: PHP
- Homepage:
- Size: 1.02 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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:
```bash
git clone git@github.com:HeshamAdel0007/LoginSystem.git
```
### 2. Install Laravel
```bash
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
```bash
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
```bash
php artisan key:generate
```
- Migrate The DataBase
```bash
php artisan migrate
```
- Migrate The Seeder
```bash
php artisan db:seed
```
```bash
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
```bash
BACKEND_URL=your_back-end_url
```
1. run this command
```bash
npm insatll
```
```bash
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
[
](mailto:heshamadel528@gmail.com) [
](https://in.linkedin.com/in/heshamadel000)
## License
The Project licensed under the [MIT license](https://opensource.org/licenses/MIT).