Fix hosting 500s: rc_service_orders migration and account layout.
Deploy Ladill Hosting / deploy (push) Successful in 22s

Account pages were extending the email layout with undefined routes, and hosting type pages queried a missing rc_service_orders table.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-06 16:41:27 +00:00
co-authored by Cursor
parent 2df303048c
commit c627d83e59
9 changed files with 150 additions and 60 deletions
@@ -19,6 +19,7 @@ use Illuminate\Http\JsonResponse;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Schema;
use Illuminate\Validation\ValidationException;
use Illuminate\View\View;
@@ -157,7 +158,7 @@ class HostingProductController extends Controller
->get();
}
if ($rcCategory) {
if ($rcCategory && Schema::hasTable('rc_service_orders')) {
$rcServiceOrders = RcServiceOrder::query()
->where('user_id', $user->id)
->where('category', $rcCategory)
@@ -202,7 +203,7 @@ class HostingProductController extends Controller
$rcCategory = $this->getRcCategoryForType($type);
$rcServiceOrders = collect();
if ($rcCategory) {
if ($rcCategory && Schema::hasTable('rc_service_orders')) {
$rcServiceOrders = RcServiceOrder::query()
->where('user_id', $user->id)
->where('category', $rcCategory)