php - laravel中app key作用?
扔个三星炸死你
扔个三星炸死你 2017-06-14 10:54:50
0
1
1370

刚刚看laravel项目克隆流程的相关教程,不清楚文中app key作用,目前使用laravel 5.1,百度和手册也没有搜索到,劳烦告知app key具体作用,万分感谢.

扔个三星炸死你
扔个三星炸死你

全部回复(1)
世界只因有你

框架中是这样描述的:

This key is used by the Illuminate encrypter service and should be set to a random, 32 character string, otherwise these encrypted strings will not be safe. Please do this before deploying an application!

也就是这个key是一个随机字符串,用于实现框架中的encrypt(加密)服务,例如存储用户的session,cookie等,从而确保信息安全。可以通过artisan命令将该key更新。

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!