剛剛看laravel項目克隆流程的相關教程,不清楚文中app key作用,目前使用laravel 5.1,百度和手冊也沒有搜索到,勞煩告知app key具體作用,萬分感謝.
框架中是這樣描述的:
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是一個隨機字符串,用于實現(xiàn)框架中的encrypt(加密)服務,例如存儲用戶的session,cookie等,從而確保信息安全??梢酝ㄟ^artisan命令將該key更新。