16 lines
362 B
PHP
16 lines
362 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::get('/', function () {
|
|
return auth()->check()
|
|
? redirect()->route('dashboard')
|
|
: redirect()->route('login');
|
|
})->name('home');
|
|
|
|
Route::middleware(['auth', 'verified'])->group(function () {
|
|
Route::view('dashboard', 'dashboard')->name('dashboard');
|
|
});
|
|
|
|
require __DIR__.'/settings.php';
|