剛剛看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 thisefore deploying strings will not be safe. Please do thisefore
框架中是這樣描述的:
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 thisefore deploying strings will not be safe. Please do thisefore
也就是這個key是一個隨機字串,用來實現框架中的encrypt(加密)服務,例如儲存使用者的session,cookie等,從而確保資訊安全。可以透過artisan指令將該key更新。