I am using laravel 5.6
and i use redis
for my session driver
:
.env:
SESSION_DRIVER=redis
Now in my web.php:
<?php
use Illuminate\Support\Facades\Session;
Route::get('/',function(){
if(Session::has('a')){
return Session::all();
}
Session::put('a','test',10);
return 'reload';
});
Now i want to get my session time life with other url.But i couldn't find any command to get it!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire