Implement settings page: profile update and password change

This commit is contained in:
2026-08-17 18:06:48 +03:30
parent 2c3495820a
commit a09e8e4eb1
6 changed files with 261 additions and 4 deletions
+8 -2
View File
@@ -1,8 +1,14 @@
<?php
use App\Http\Controllers\DashboardController;
use App\Http\Controllers\ProfileController;
use App\Http\Controllers\SettingController;
use Illuminate\Support\Facades\Route;
Route::get('profile' , [ProfileController::class , 'index'])->name('profile');
Route::get('dashboard' , [DashboardController::class , 'index'])->name('dashboard');
Route::get('setting' , [SettingController::class , 'index'])->name('setting');
Route::middleware('auth')->group(function () {
Route::get('/setting', [SettingController::class, 'index'])->name('setting');
Route::put('/setting/profile', [SettingController::class, 'updateProfile'])->name('setting.profile.update');
Route::put('/setting/password', [SettingController::class, 'updatePassword'])->name('setting.password.update');
});