1. Go to this page and download the library: Download devsrv/laravel-session-out 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/ */
devsrv / laravel-session-out example snippets
// Add the ServiceProvider to the providers array in
// config/app.php
'providers' => [
'...',
'devsrv\sessionout\sessionExpiredServiceProvider::class',
];
@
return [
// the number of seconds between ajax hits to check auth session
'gap_seconds' => 30,
// whether using broadcasting feature to make the modal disappear faster
'avail_broadcasting' => false,
<script type="text/javascript" src="{{ asset('js/broadcasting.js') }}"></script>
//some html between
@