An open API service indexing awesome lists of open source software.

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

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

[Gmail logo](mailto:heshamadel528@gmail.com) [Linkedin Logo](https://in.linkedin.com/in/heshamadel000)

## License

The Project licensed under the [MIT license](https://opensource.org/licenses/MIT).