laravel-share-session maintained by rl-group
Description
A package that creates SESSION is shared by all apps connected to it
Author
Last update
2019/08/01 11:35
(dev-master)
Downloads
9
ShareSession
A package in Laravel that creates SESSION is shared to any apps
Installation
Install via composer in the root directory of a Laravel 5 application
composer require rl-group/laravel-share-session
Add the following lines to .env
DB_ACCOUNT_CONNECTION=accounts
DB_ACCOUNT_HOST=127.0.0.1
DB_ACCOUNT_PORT=3306
DB_ACCOUNT_DATABASE=
DB_ACCOUNT_USERNAME=
DB_ACCOUNT_PASSWORD=
Update DB_ACCOUNT_DATABASE,DB_ACCOUNT_USERNAME,DB_ACCOUNT_PASSWORD For the DATABASE details of the SESSION shared
Update composer
composer update
Run the package install command
php artisan package:install
Usage
- Done
make:Auth - Add
use RlGroup\ShareSession\Traits\UserFromAccounts;inApp/User.phpfile - Change row
use Notifiabletouse Notifiable, UserFromAccounts;inApp/User.phpfile - Check login in website with main project login information