Heim  >  Fragen und Antworten  >  Hauptteil

php - Welche Rolle spielt der App-Schlüssel in Laravel?

Ich habe mir gerade das Tutorial zum Klonen des Laravel-Projekts angesehen. Ich verwende derzeit Laravel 5.1 und kann es nicht finden Bitte teilen Sie mir die spezifische Funktion des App-Schlüssels mit, vielen Dank.

扔个三星炸死你扔个三星炸死你2657 Tage vor1373

Antworte allen(1)Ich werde antworten

  • 世界只因有你

    世界只因有你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 before deploying an application!

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

    Antwort
    0
  • StornierenAntwort