feat: implement profile editing and password change
This commit is contained in:
+5
-1
@@ -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');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user