Pragmarx/laravel-countries still error in laravel 8 solve this problem for easy way
Pragmarx/laravel-countries still error in laravel 8 solve this problem for easy way
Hello, laravel developer now if you facing pragmarx/laravel-countries problem in laravel 8 so no problem follow this blogs step by step. first your project open your any text editor like vscode then open new terminal in your laravel application and then run this command line create a model in your application.
Then open the created migration file from database in your laravel application so write this column in your migration file:
Then Open this model and write country table column name and code see this code - Country.php:
And then run the command in your application terminal php artisan migrate and then create a country seeder run this command in your application terminal php artisan make:seeder CountrySeeder and then write this code see this example file .
Then add your CountrySeeder class in your databaseSeeder first open databaseeder.php and then add this line follow the code -
Now basically all setup is success then run seed php artisan db:seed then wait check your database country table and then if you facing any errors or bugs please comment me and then share this post .
Thank you so much for your visit this Stackoverpoint.com
