Home > Backend Development > PHP Tutorial > laravel5.0怎样使用cookie保存一些数据?

laravel5.0怎样使用cookie保存一些数据?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:20:03
Original
1477 people have browsed it

没有什么请求,只是单纯的存一些数据,然后读取使用
文档里的方法没有用cookie

回复内容:

没有什么请求,只是单纯的存一些数据,然后读取使用
文档里的方法没有用cookie

response('')->withCookie(cookie('name','laravel',1000))

你可以试试这个:

<code>\Cookie::queue('name', 'value', $minutes);</code>
Copy after login
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template