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,