Update web.php

This commit is contained in:
Julian Prieber 2022-06-09 17:07:45 +02:00
parent 40f3dc0ec2
commit 8b8db871bc

View File

@ -31,7 +31,10 @@ if(Config::get('meta.custom_home_url') != '') {
}
if(env('HOME_URL') != '') {
Route::get('/', [UserController::class, 'littlelinkhome'])->name('littlelink');
Route::get( $custom_home_page_url, [App\Http\Controllers\HomeController::class, 'home'])->name('home');
if(Config::get('meta.disable_home_page') == 'redirect') {
Route::get($custom_home_page_url, function () {return redirect(Config::get('meta.redirect_home_page'));});
}elseif(Config::get('meta.disable_home_page') != 'true') {
Route::get( $custom_home_page_url, [App\Http\Controllers\HomeController::class, 'home'])->name('home');}
} else {
if(Config::get('meta.disable_home_page') == 'redirect') {
Route::get('/', function () {return redirect(Config::get('meta.redirect_home_page'));});