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

https://github.com/nafiesl/laravel-multi-table-auth

Example Laravel 5.6 application with multi table authentication.
https://github.com/nafiesl/laravel-multi-table-auth

laravel multi-authentication tdd-workflow

Last synced: 4 days ago
JSON representation

Example Laravel 5.6 application with multi table authentication.

Awesome Lists containing this project

README

          

# Laravel multi-table Auth

Laravel 5.6 example with multi-table Authentication. Built with Test-driven Development.


## Getting Started
This application can be installed on local server and online server with these specifications :

#### Server Requirements
1. PHP >= 7.1.3 (and meet [Laravel 5.6 server requirements](https://laravel.com/docs/5.6#server-requirements)),
2. MySQL or MariaDB database,
3. SQlite (for automated testing).

#### Installation Guide

```bash
# Clone the repo
$ git clone https://github.com/nafiesl/laravel-multi-table-auth.git

# cd into project directory
$ cd laravel-multi-table-auth

# Install dependecies
$ composer install # or composer update

# Set create env file
$ cp .env.example .env
$ php artisan key:generate
```

- Create new MySQL database for this application
- Set database credentials on `.env` file

```bash
# Migrate the database structire
$ php artisan migrate

# Start web server
$ php artisan serve
```

- Register as **new User** and **new Customer**, then login as separated authentication guard.


## Screenshots

#### User Login Page

![User Login Page](public/screenshots/01-user-login-page.jpg)

#### User Dashboard Page

![User Dashboard Page](public/screenshots/02-user-dashboard-page.jpg)

#### Customer Register Page

![Customer Register Page](public/screenshots/03-customer-register-page.jpg)

#### Customer Login Page

![Customer Login Page](public/screenshots/04-customer-login-page.jpg)

#### Customer Dashboard Page

![Customer Dashboard Page](public/screenshots/05-customer-dashboard-page.jpg)

## License

This project is free and open-source under [MIT License](LICENSE).