feat: implement profile editing and password change

This commit is contained in:
2026-08-18 09:26:09 +03:30
parent d4f49df688
commit bb4196cc1b
8 changed files with 145 additions and 19 deletions
+5 -1
View File
@@ -21,11 +21,15 @@ Route::prefix('tours')->controller(TourController::class)->name('tours.')->group
Route::prefix('account')->name('accounts.')->middleware('auth')->group(function (){
Route::get('/profile' ,[ProfileController::class , 'index'])->name('profile');
Route::controller(ProfileController::class)->group(function () {
Route::get('/profile', 'index')->name('profile');
Route::get('/get-cities/{province_id}', 'getCities')->name('get-cities');
});
Route::prefix('edit-profile')->name('edit-profile.')->controller(EditProfileController::class)->group(function () {
Route::get('/', 'index')->name('index');
Route::post('/', 'update')->name('update');
Route::post('change-password', 'changePassword')->name('change-password');
});
});