15 lines
655 B
PHP
15 lines
655 B
PHP
<?php
|
|
|
|
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('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');
|
|
});
|