fix: tenancy middleware order and ui consistency for user profile
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\Landlord\DashboardController;
|
||||
use App\Http\Controllers\Landlord\TenantController;
|
||||
use App\Http\Controllers\Landlord\ProfileController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -21,6 +22,11 @@ Route::prefix('landlord')->name('landlord.')->middleware(['web', 'auth', \App\Ht
|
||||
// 租戶管理 CRUD
|
||||
Route::resource('tenants', TenantController::class);
|
||||
|
||||
// 使用者設定
|
||||
Route::get('profile', [ProfileController::class, 'edit'])->name('profile.edit');
|
||||
Route::patch('profile', [ProfileController::class, 'update'])->name('profile.update');
|
||||
Route::put('profile/password', [ProfileController::class, 'updatePassword'])->name('profile.password');
|
||||
|
||||
// 租戶域名管理
|
||||
Route::post('tenants/{tenant}/domains', [TenantController::class, 'addDomain'])->name('tenants.domains.store');
|
||||
Route::delete('tenants/{tenant}/domains/{domain}', [TenantController::class, 'removeDomain'])->name('tenants.domains.destroy');
|
||||
|
||||
Reference in New Issue
Block a user