This commit is contained in:
Jonatan Rek 2024-09-10 15:40:53 +02:00
parent eaccd5224a
commit 8d408c4704

View File

@ -1,9 +1,13 @@
<?php <?php
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Route;
Route::auth(); Route::auth();
Route::get('/', function () { Route::get('/', function () {
if (Auth::check()){
return redirect()->route('maintenance.planned');
}
return redirect()->route('login'); return redirect()->route('login');
}); });