Browse Source

use APP_KEY from environment if available for the secret key

Wing Lian 9 years ago
parent
commit
858bf03610
1 changed files with 1 additions and 1 deletions
  1. 1 1
      config/app.php

+ 1 - 1
config/app.php

@@ -78,7 +78,7 @@ return [
 	|
 	*/
 
-	'key' => 'YourSecretKey!!!',
+	'key' => getenv('APP_KEY') ?: 'YourSecretKey!!!',
 
 	'cipher' => MCRYPT_RIJNDAEL_128,