There are many issues with attempting to set up the seeder and migration for webpatser/laravel-countries on laravel 7.x|8.x applications which require some elbow grease and workarounds and cannot be automated (there hasn't been an update since 2019). Also the migrations in webpatser/laravel-countries contain raw sql and supports limited database platforms.
There are many issues with attempting to set up the seeder and migration for webpatser/laravel-countries on laravel 7.x|8.x applications which require some elbow grease and workarounds and cannot be automated (there hasn't been an update since 2019). Also the migrations in webpatser/laravel-countries contain raw sql and supports limited database platforms.
The PR uses calebporzio/sushi, ("Eloquent's missing 'array' driver.") to simply create a model from an array generated from https://github.com/webpatser/laravel-countries/blob/master/src/Webpatser/Countries/Models/countries.json