rl-group/laravel-share-session

There is no license information available for the latest version (1.3) of this package.

A package that creates SESSION is shared by all apps connected to it

1.3 2019-08-01 09:35 UTC

This package is auto-updated.

Last update: 2024-09-29 05:22:03 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; in App/User.php file
  • Change row use Notifiable to use Notifiable, UserFromAccounts; in App/User.php file
  • Check login in website with main project login information