php artisan migrate INFO Running migrations.
2021_04_14_141211_update_locations_tables ...................................... 1s DONE 2021_04_14_141222_create_locations_table ................................. 172.50ms DONE 2021_04_14_182305_fill_all_vars ........................................... 68.16ms FAIL
PDOException
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
at vendor/tomatophp/filament-locations/database/migrations/2021_04_14_182305_fill_all_vars.php:24 20▕ $citites = \Illuminate\Support\Facades\File::get(base_path('vendor/tomatophp/filament-locations/database/data/cities.sql')); 21▕ DB::connection()->getPdo()->exec($citites); 22▕ 23▕ $areas = \Illuminate\Support\Facades\File::get(base_path('vendor/tomatophp/filament-locations/database/data/areas.sql')); ➜ 24▕ DB::connection()->getPdo()->exec($areas); 25▕ 26▕ $currencies = \Illuminate\Support\Facades\File::get(base_path('vendor/tomatophp/filament-locations/database/data/currencies.sql')); 27▕ DB::connection()->getPdo()->exec($currencies); 28▕
+27 vendor frames
28 artisan:13 Illuminate\Foundation\Application::handleCommand(Object(Symfony\Component\Console\Input\ArgvInput))
I tried to run php artisan migrate and get this error: mau@Maus-MBP filament % php artisan migrate
INFO Running migrations.
2021_04_14_141211_update_locations_tables ...................................... 1s DONE 2021_04_14_141222_create_locations_table ................................. 172.50ms DONE 2021_04_14_182305_fill_all_vars ........................................... 68.16ms FAIL
PDOException
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
at vendor/tomatophp/filament-locations/database/migrations/2021_04_14_182305_fill_all_vars.php:24 20▕ $citites = \Illuminate\Support\Facades\File::get(base_path('vendor/tomatophp/filament-locations/database/data/cities.sql')); 21▕ DB::connection()->getPdo()->exec($citites); 22▕ 23▕ $areas = \Illuminate\Support\Facades\File::get(base_path('vendor/tomatophp/filament-locations/database/data/areas.sql')); ➜ 24▕ DB::connection()->getPdo()->exec($areas); mau@Maus-MBP filament % php artisan migrate
INFO Running migrations.
2021_04_14_182305_fill_all_vars ............................................ 5.75ms FAIL
PDOException
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY'
at vendor/tomatophp/filament-locations/database/migrations/2021_04_14_182305_fill_all_vars.php:18 14▕ */ 15▕ public function up() 16▕ { 17▕ $countires = \Illuminate\Support\Facades\File::get(base_path('vendor/tomatophp/filament-locations/database/data/countries.sql')); ➜ 18▕ DB::connection()->getPdo()->exec($countires); 19▕ 20▕ $citites = \Illuminate\Support\Facades\File::get(base_path('vendor/tomatophp/filament-locations/database/data/cities.sql')); 21▕ DB::connection()->getPdo()->exec($citites); 22▕
+27 vendor frames
28 artisan:13 Illuminate\Foundation\Application::handleCommand(Object(Symfony\Component\Console\Input\ArgvInput))
Please help to solve this problem