PHP code example of rowanfuchs / singlesession

1. Go to this page and download the library: Download rowanfuchs/singlesession library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rowanfuchs / singlesession example snippets


'singlesession' => \rowanfuchs\SingleSession\Middleware\SingleSession::class,

$this->middleware('singlesession');

Route::group(['middleware' => ['singlesession']], function () {
    Route::get('/home', 'HomeController@index')->name('home');
});