Controller fix

This commit is contained in:
2026-11-02 10:40:56 +01:00
parent cf55f3c9f9
commit da9992e060
@@ -66,6 +66,10 @@ class ContactController extends Controller
Artisan::call('migrate', ['--force' => true]); Artisan::call('migrate', ['--force' => true]);
} }
if (! \Illuminate\Support\Facades\Schema::hasTable('communications')) {
\Illuminate\Support\Facades\Artisan::call('migrate', ['--force' => true]);
}
$communication = Communication::create([ $communication = Communication::create([
'user_id' => Auth::id(), 'user_id' => Auth::id(),
'order_id' => $orderId, 'order_id' => $orderId,