2023-11-23 19:27:43 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Web Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
|
|
| routes are loaded by the RouteServiceProvider and all of them will
|
|
|
|
| be assigned to the "web" middleware group. Make something great!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
Route::get('/', function () {
|
2023-11-24 00:16:43 +01:00
|
|
|
if (auth()->check()) {
|
|
|
|
return redirect()->route('dashboard');
|
|
|
|
}
|
2023-11-23 19:27:43 +01:00
|
|
|
|
2023-11-24 00:16:43 +01:00
|
|
|
return view('home');
|
|
|
|
});
|
2023-11-23 19:27:43 +01:00
|
|
|
|
|
|
|
require __DIR__ . '/auth.php';
|