首頁  >  問答  >  主體

php - laravel中app key作用?

剛剛看laravel專案克隆流程的相關教程,不清楚文中app key作用,目前使用laravel 5.1,百度和手冊也沒有搜尋到,勞煩告知app key具體作用,萬分感謝.

#
扔个三星炸死你扔个三星炸死你2657 天前1372

全部回覆(1)我來回復

  • 世界只因有你

    世界只因有你2017-06-14 10:56:50

    框架中是這樣描述的:

    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更新。

    回覆
    0
  • 取消回覆