xxxxxxxxxx
use Illuminate\Support\Facades\Session;
public function checkTimeLeft()
{
$timeLeft = Session::getHandler()->getTimeLeft(Session::getId());
return $timeLeft;
}
xxxxxxxxxx
// Retrieve the session lifetime value
$sessionLifetime = config('session.lifetime');
// Update the session lifetime value (if needed)
Config::set('session.lifetime', 60);