Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
ba3f62f7
Commit
ba3f62f7
authored
Feb 17, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added auto_key config option.
parent
faa2eec3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
application.php
application/config/application.php
+6
-0
laravel.php
laravel/laravel.php
+3
-1
No files found.
application/config/application.php
View file @
ba3f62f7
...
...
@@ -38,10 +38,16 @@ return array(
| remain secret and should not be shared with anyone. Make it about 32
| 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'
=>
''
,
'auto_key'
=>
true
,
/*
|--------------------------------------------------------------------------
| Application Character Encoding
...
...
laravel/laravel.php
View file @
ba3f62f7
...
...
@@ -57,7 +57,9 @@ ini_set('display_errors', Config::get('error.display'));
* string for the developer. This provides the developer with
* 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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment