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
74cd3eb8
Commit
74cd3eb8
authored
May 02, 2013
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added proper code for new maintenance mode feature.
parent
e72b1209
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
app.php
app/config/app.php
+1
-0
global.php
app/start/global.php
+16
-0
No files found.
app/config/app.php
View file @
74cd3eb8
...
...
@@ -96,6 +96,7 @@ return array(
'Illuminate\Foundation\Providers\KeyGeneratorServiceProvider'
,
'Illuminate\Log\LogServiceProvider'
,
'Illuminate\Mail\MailServiceProvider'
,
'Illuminate\Foundation\Providers\MaintenanceServiceProvider'
,
'Illuminate\Database\MigrationServiceProvider'
,
'Illuminate\Foundation\Providers\OptimizeServiceProvider'
,
'Illuminate\Pagination\PaginationServiceProvider'
,
...
...
app/start/global.php
View file @
74cd3eb8
...
...
@@ -53,6 +53,22 @@ App::error(function(Exception $exception, $code)
Log
::
error
(
$exception
);
});
/*
|--------------------------------------------------------------------------
| Maintenance Mode Handler
|--------------------------------------------------------------------------
|
| The "down" Artisan command gives you the ability to put an application
| into maintenance mode. Here, you will define what is displayed back
| to the user if maintenace mode is in effect for this application.
|
*/
App
::
down
(
function
()
{
return
"We'll be right back!"
;
});
/*
|--------------------------------------------------------------------------
| Require The Filters File
...
...
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