Commit ba3f62f7 authored by Taylor Otwell's avatar Taylor Otwell

added auto_key config option.

parent faa2eec3
...@@ -38,10 +38,16 @@ return array( ...@@ -38,10 +38,16 @@ return array(
| remain secret and should not be shared with anyone. Make it about 32 | remain secret and should not be shared with anyone. Make it about 32
| characters of random gibberish. | characters of random gibberish.
| |
| The "auto_key" option tells Laravel to automatically set this key value
| if one has not already been set. This is generally done on the first
| request to the Laravel splash screen.
|
*/ */
'key' => '', 'key' => '',
'auto_key' => true,
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Application Character Encoding | Application Character Encoding
......
...@@ -57,7 +57,9 @@ ini_set('display_errors', Config::get('error.display')); ...@@ -57,7 +57,9 @@ ini_set('display_errors', Config::get('error.display'));
* string for the developer. This provides the developer with * string for the developer. This provides the developer with
* a zero configuration install process. * a zero configuration install process.
*/ */
if (Config::get('application.key') == '') $auto_key = Config::get('application.auto_key');
if ($auto_key and Config::get('application.key') == '')
{ {
ob_start() and with(new CLI\Tasks\Key)->generate(); ob_start() and with(new CLI\Tasks\Key)->generate();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment