set application key by default.
This commit is contained in:
parent
257d917e19
commit
86fa595317
|
@ -44,9 +44,7 @@
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'key' => '',
|
'key' => 'YourSecretKeyGoesHere!',
|
||||||
|
|
||||||
'auto_key' => true,
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
2
artisan
2
artisan
|
@ -3,7 +3,7 @@
|
||||||
* Laravel - A PHP Framework For Web Artisans
|
* Laravel - A PHP Framework For Web Artisans
|
||||||
*
|
*
|
||||||
* @package Laravel
|
* @package Laravel
|
||||||
* @version 3.0.0
|
* @version 3.0.1
|
||||||
* @author Taylor Otwell <taylorotwell@gmail.com>
|
* @author Taylor Otwell <taylorotwell@gmail.com>
|
||||||
* @link http://laravel.com
|
* @link http://laravel.com
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -52,21 +52,6 @@
|
||||||
|
|
||||||
ini_set('display_errors', Config::get('error.display'));
|
ini_set('display_errors', Config::get('error.display'));
|
||||||
|
|
||||||
/**
|
|
||||||
* Determine if we need to set the application key to a very random
|
|
||||||
* string so we can provide a zero configuration installation but
|
|
||||||
* still ensure that the key is set to something random. It is
|
|
||||||
* possible to disable this feature.
|
|
||||||
*/
|
|
||||||
$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_end_clean();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Even though "Magic Quotes" are deprecated in PHP 5.3, they may
|
* Even though "Magic Quotes" are deprecated in PHP 5.3, they may
|
||||||
* still be enabled on the server. To account for this, we will
|
* still be enabled on the server. To account for this, we will
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Laravel - A PHP Framework For Web Artisans
|
* Laravel - A PHP Framework For Web Artisans
|
||||||
*
|
*
|
||||||
* @package Laravel
|
* @package Laravel
|
||||||
* @version 3.0.0
|
* @version 3.0.1
|
||||||
* @author Taylor Otwell <taylorotwell@gmail.com>
|
* @author Taylor Otwell <taylorotwell@gmail.com>
|
||||||
* @link http://laravel.com
|
* @link http://laravel.com
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Laravel - A PHP Framework For Web Artisans
|
* Laravel - A PHP Framework For Web Artisans
|
||||||
*
|
*
|
||||||
* @package Laravel
|
* @package Laravel
|
||||||
* @version 3.0.0
|
* @version 3.0.1
|
||||||
* @author Taylor Otwell <taylorotwell@gmail.com>
|
* @author Taylor Otwell <taylorotwell@gmail.com>
|
||||||
* @link http://laravel.com
|
* @link http://laravel.com
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue