Skip to content

Commit ba3f62f

Browse files
committed
added auto_key config option.
1 parent faa2eec commit ba3f62f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

application/config/application.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,16 @@
3838
| remain secret and should not be shared with anyone. Make it about 32
3939
| characters of random gibberish.
4040
|
41+
| The "auto_key" option tells Laravel to automatically set this key value
42+
| if one has not already been set. This is generally done on the first
43+
| request to the Laravel splash screen.
44+
|
4145
*/
4246

4347
'key' => '',
4448

49+
'auto_key' => true,
50+
4551
/*
4652
|--------------------------------------------------------------------------
4753
| Application Character Encoding

laravel/laravel.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757
* string for the developer. This provides the developer with
5858
* a zero configuration install process.
5959
*/
60-
if (Config::get('application.key') == '')
60+
$auto_key = Config::get('application.auto_key');
61+
62+
if ($auto_key and Config::get('application.key') == '')
6163
{
6264
ob_start() and with(new CLI\Tasks\Key)->generate();
6365

0 commit comments

Comments
 (0)