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 1717|
1818*/
1919
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 " ))){
2622
2723// Prevents section below from being run by 'composer update'
2824if (file_exists (base_path ('storage/app/ISINSTALLED ' ))){
164160
165161});
166162
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+
167170require __DIR__ .'/auth.php ' ;
You can’t perform that action at this time.
0 commit comments