File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 17
17
|
18
18
*/
19
19
20
- // Displays Maintenance Mode page
21
- if (env ('MAINTENANCE_MODE ' ) == 'true ' or file_exists (base_path ("storage/MAINTENANCE " ))){
22
- Route::get ('/{any} ' , function () {
23
- return view ('maintenance ' );
24
- })->where ('any ' , '.* ' );
25
- } else {
20
+ // Disables routes if in Maintenance Mode
21
+ if (env ('MAINTENANCE_MODE ' ) != 'true ' and !file_exists (base_path ("storage/MAINTENANCE " ))){
26
22
27
23
// Prevents section below from being run by 'composer update'
28
24
if (file_exists (base_path ('storage/app/ISINSTALLED ' ))){
164
160
165
161
});
166
162
163
+ // Displays Maintenance Mode page
164
+ if (env ('MAINTENANCE_MODE ' ) == 'true ' or file_exists (base_path ("storage/MAINTENANCE " ))){
165
+ Route::get ('/{any} ' , function () {
166
+ return view ('maintenance ' );
167
+ })->where ('any ' , '.* ' );
168
+ }
169
+
167
170
require __DIR__ .'/auth.php ' ;
You can’t perform that action at this time.
0 commit comments