In time field you only have to pass time in minutes so in your case just pass 60
If you look at laravel source In namespace Illuminate\Cookie - CookieJar.php file you can look at this method.
public function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true)
{
list($path, $domain) = $this->getPathAndDomain($path, $domain);
$time = ($minutes == 0) ? 0 : time() + ($minutes * 60);
return new Cookie($name, $value, $time, $path, $domain, $secure, $httpOnly);
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community