2017 © Pedro Peláez
 

library laravel-single-session

A plugin provide single session authentication for Laravel 5.

image

overtrue/laravel-single-session

A plugin provide single session authentication for Laravel 5.

  • Thursday, December 28, 2017
  • by overtrue
  • Repository
  • 1 Watchers
  • 15 Stars
  • 159 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

Laravel-single-session

A plugin provide single session authentication for Laravel 5., (*1)

Installing

$ composer require overtrue/laravel-single-session -vvv

Usage

  1. Register provider(if you disabled Laravel auto discovery)
    'providers' => [
        Overtrue\LaravelSingleSession\SingleSessionServiceProvider::class
    ],
  1. (Optional) Config the session:
    // config/session.php
    // The storage for store the last session id.
    'last_session_storage' => 'cache', // cache(default)/database

    // The field name of last session id.
    'last_session_field' => 'last_session_id', 

    // The path of redirect when logout after session changed.
    'redirect_path' => '/',
  1. it works.

Events

If the session changed, the following event will be triggered:, (*2)

Overtrue\LaravelSingleSession\Events\SessionExpired

PHP 扩展包开发

想知道如何从零开始构建 PHP 扩展包?, (*3)

请关注我的实战课程,我会在此课程中分享一些扩展开发经验 —— 《PHP 扩展包实战教程 - 从入门到发布》, (*4)

License

MIT, (*5)

The Versions

28/12 2017

dev-master

9999999-dev

A plugin provide single session authentication for Laravel 5.

  Sources   Download

MIT

The Requires

 

by Avatar overtrue

11/12 2017

1.0.0

1.0.0.0

A plugin provide single session authentication for Laravel 5.

  Sources   Download

MIT

The Requires

 

by Avatar overtrue