How to disable "Session Expired in Laravel " in my Login Page?
You can't disable
or There's no "forever
" option but you can set it for 20 years or so
You can only set it in minutes, but it's just a basic PHP array, if you really wanted to then you could just do the basic math in it if you wanted a longer time.
Like to get an hour, multiply it by 60, to get a day multiply the hours by 24, and to get a year multiply the days by 365.
'lifetime' => 1 * (60 * 24 * 365), // 1 year
But realistically there's no point and you won't be changing this again so it'd be fine to just put the final result in the config file and leave a comment next to it to note how much the number of minutes equates to.