From da9992e060ce277d45d2e3a7d81795d0c3e9608e Mon Sep 17 00:00:00 2001 From: Niek Rabelink Date: Mon, 2 Nov 2026 10:40:56 +0100 Subject: [PATCH] Controller fix --- app/Http/Controllers/ContactController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/ContactController.php b/app/Http/Controllers/ContactController.php index 8042372..03cdf67 100644 --- a/app/Http/Controllers/ContactController.php +++ b/app/Http/Controllers/ContactController.php @@ -66,6 +66,10 @@ class ContactController extends Controller Artisan::call('migrate', ['--force' => true]); } + if (! \Illuminate\Support\Facades\Schema::hasTable('communications')) { + \Illuminate\Support\Facades\Artisan::call('migrate', ['--force' => true]); + } + $communication = Communication::create([ 'user_id' => Auth::id(), 'order_id' => $orderId,