rl-group / laravel-share-session
A package that creates SESSION is shared by all apps connected to it
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/rl-group/laravel-share-session
This package is auto-updated.
Last update: 2025-12-29 03:06:08 UTC
README
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