added laravel 12

This commit is contained in:
jon brookes 2026-01-01 16:49:06 +00:00
parent 6a97cad9f8
commit 602bdcbe17
124 changed files with 18707 additions and 0 deletions

35
routes/web.php Normal file
View file

@ -0,0 +1,35 @@
<?php
use App\Livewire\Settings\Appearance;
use App\Livewire\Settings\Password;
use App\Livewire\Settings\Profile;
use App\Livewire\Settings\TwoFactor;
use Illuminate\Support\Facades\Route;
use Laravel\Fortify\Features;
Route::get('/', function () {
return view('welcome');
})->name('home');
Route::view('dashboard', 'dashboard')
->middleware(['auth', 'verified'])
->name('dashboard');
Route::middleware(['auth'])->group(function () {
Route::redirect('settings', 'settings/profile');
Route::get('settings/profile', Profile::class)->name('profile.edit');
Route::get('settings/password', Password::class)->name('user-password.edit');
Route::get('settings/appearance', Appearance::class)->name('appearance.edit');
Route::get('settings/two-factor', TwoFactor::class)
->middleware(
when(
Features::canManageTwoFactorAuthentication()
&& Features::optionEnabled(Features::twoFactorAuthentication(), 'confirmPassword'),
['password.confirm'],
[],
),
)
->name('two-factor.show');
});