Initial commit of the L'Ami Fiduciaire SaaS platform built on Laravel 12, Vue 3, Inertia.js 2, and Tailwind CSS 4. Story 0.1 (rename folders to declarations in database) is implemented and code-reviewed: migration, rollback, and 6 Pest tests all passing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
1.1 KiB
PHP
29 lines
1.1 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\Settings\PasswordController;
|
|
use App\Http\Controllers\Settings\ProfileController;
|
|
use App\Http\Controllers\Settings\TwoFactorAuthenticationController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::middleware(['auth'])->group(function () {
|
|
Route::redirect('settings', '/settings/profile');
|
|
|
|
Route::get('settings/profile', [ProfileController::class, 'edit'])->name('profile.edit');
|
|
Route::patch('settings/profile', [ProfileController::class, 'update'])->name('profile.update');
|
|
});
|
|
|
|
Route::middleware(['auth', 'verified'])->group(function () {
|
|
Route::delete('settings/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
|
|
|
|
Route::get('settings/password', [PasswordController::class, 'edit'])->name('user-password.edit');
|
|
|
|
Route::put('settings/password', [PasswordController::class, 'update'])
|
|
->middleware('throttle:6,1')
|
|
->name('user-password.update');
|
|
|
|
Route::inertia('settings/appearance', 'settings/Appearance')->name('appearance.edit');
|
|
|
|
Route::get('settings/two-factor', [TwoFactorAuthenticationController::class, 'show'])
|
|
->name('two-factor.show');
|
|
});
|