//获取一个cookie的值 $value = Cookie::get('name'); //给响应添加新的cookie $response = Response::make('Hello World'); $response->withCookie(Cookie::make('name', 'value', $minutes)); //在响应之前添加到cookie队列,会被框架自动加到最终的响应中 Cookie::queue($name, $value, $minutes); //创建永不失效的cookie $cookie = Cookie::forever('name', 'value');