Update web.php

This commit is contained in:
Julian Prieber 2022-08-08 15:50:40 +02:00
parent bcaf3593b9
commit 8bf6ffb837
1 changed files with 3 additions and 3 deletions

View File

@ -17,9 +17,6 @@ use App\Http\Controllers\UserController;
|
*/
// Disables routes if in Maintenance Mode
if(env('MAINTENANCE_MODE') != 'true' and !file_exists(base_path("storage/MAINTENANCE"))){
// Prevents section below from being run by 'composer update'
if(file_exists(base_path('storage/app/ISINSTALLED'))){
// generates new APP KEY if no one is set
@ -29,6 +26,9 @@ if(file_exists(base_path('storage/app/ISINSTALLED'))){
if(!file_exists(base_path("config/advanced-config.php"))){copy(base_path('storage/templates/advanced-config.php'), base_path('config/advanced-config.php'));}
}
// Disables routes if in Maintenance Mode
if(env('MAINTENANCE_MODE') != 'true' and !file_exists(base_path("storage/MAINTENANCE"))){
//Changes the homepage to a LittleLink Custom profile if set in the config
if(config('advanced-config.custom_home_url') != '') {
$custom_home_page_url = config('advanced-config.custom_home_url');