feat(profile): align settings with dashboard layout

This commit is contained in:
2026-07-31 03:41:51 +02:00
parent e47243f7dc
commit 73c601ddc2
18 changed files with 947 additions and 377 deletions

View File

@@ -11,6 +11,7 @@ use App\Http\Controllers\Auth\TwoFactorChallengeController;
use App\Http\Controllers\Auth\TwoFactorSettingsController;
use App\Http\Controllers\Auth\TwoFactorSetupController;
use App\Http\Controllers\ProfileController;
use App\Http\Controllers\ProfileSecurityController;
use Illuminate\Support\Facades\Route;
Route::middleware('guest')->group(function () {
@@ -54,8 +55,16 @@ Route::middleware('auth')->group(function () {
->middleware('throttle:auth.account')
->name('verification.send');
Route::get('profile', ProfileController::class)->name('profile.show');
Route::redirect('security', '/profile')->name('profile.security-redirect');
Route::get('profile', [ProfileController::class, 'show'])->name('profile.show');
Route::patch('profile', [ProfileController::class, 'update'])
->middleware('throttle:auth.account')
->name('profile.update');
Route::get('profile/security', [ProfileSecurityController::class, 'show'])
->name('profile.security');
Route::put('profile/password', [ProfileSecurityController::class, 'updatePassword'])
->middleware('throttle:auth.account')
->name('profile.password.update');
Route::redirect('security', '/profile/security')->name('profile.security-redirect');
Route::get('two-factor-setup', TwoFactorSetupController::class)
->name('two-factor.setup');
Route::get('two-factor-setup/complete', [TwoFactorSetupController::class, 'complete'])