Remove orphaned account.team/developers routes + repoint sidebar Team
Deploy Ladill Hosting / deploy (push) Successful in 1m11s

Completes the strip: drop the local account.team* and account.developers* route
definitions (the DeveloperController + views were removed in the previous
commit) and point the sidebar Team link to the central account hub. account.switch
retained. (Previous commit landed only the deletions; this makes routes consistent.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
isaacclad
2026-06-18 23:59:44 +00:00
co-authored by Claude Opus 4.8
parent f206f9bef5
commit 2ff74c45ac
2 changed files with 4 additions and 10 deletions
+1 -1
View File
@@ -34,7 +34,7 @@
'icon' => '<path stroke-linecap="round" stroke-linejoin="round" d="M21 12a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 12m18 0v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6m18 0V9M3 12V9m18 0a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 9m18 0V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v3" />'],
['name' => 'Billing', 'route' => route('account.billing'), 'active' => request()->routeIs('account.billing'),
'icon' => '<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 0 0 2.25-2.25V6.75A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25v10.5A2.25 2.25 0 0 0 6.75 19.5Z" />'],
['name' => 'Team', 'route' => route('account.team'), 'active' => request()->routeIs('account.team'),
['name' => 'Team', 'route' => ladill_account_url('/account/team'), 'active' => false,
'icon' => '<path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 0 0 2.625.372 9.337 9.337 0 0 0 4.121-.952 4.125 4.125 0 0 0-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 0 1 8.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0 1 11.964-3.07M12 6.375a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0Zm8.25 2.25a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z" />'],
];
@endphp
+3 -9
View File
@@ -3,7 +3,6 @@
use App\Http\Controllers\Auth\SsoLoginController;
use App\Http\Controllers\Hosting\AccountController;
use App\Http\Controllers\Hosting\AfiaController;
use App\Http\Controllers\Hosting\DeveloperController;
use App\Http\Controllers\Hosting\HostingController;
use App\Http\Controllers\Hosting\HostingPanelController;
use App\Http\Controllers\Hosting\HostingProductController;
@@ -128,15 +127,10 @@ Route::middleware(['auth'])->group(function () use ($serversApp) {
Route::get('/account/settings', [AccountController::class, 'settings'])->name('account.settings');
Route::put('/account/settings', [AccountController::class, 'updateSettings'])->name('account.settings.update');
Route::get('/account/team', [TeamController::class, 'index'])->name('account.team');
Route::post('/account/team', [TeamController::class, 'store'])->name('account.team.store');
Route::patch('/account/team/{member}/role', [TeamController::class, 'updateRole'])->name('account.team.role');
Route::delete('/account/team/{member}', [TeamController::class, 'destroy'])->name('account.team.destroy');
// Team & Developers management moved to the central account hub
// (account.ladill.com/account/team, /account/developers). Only the acting-
// account switcher remains here (load-bearing for multi-account access).
Route::post('/account/switch', [TeamController::class, 'switchAccount'])->name('account.switch');
Route::get('/account/developers', [DeveloperController::class, 'index'])->name('account.developers');
Route::post('/account/developers', [DeveloperController::class, 'store'])->name('account.developers.store');
Route::delete('/account/developers/{token}', [DeveloperController::class, 'destroy'])->whereNumber('token')->name('account.developers.destroy');
Route::post('/afia/chat', [AfiaController::class, 'chat'])->name('hosting.afia.chat');
});