laravel-countries
laravel-countries copied to clipboard
Seeding the countries table getting "Call to undefined method Webpatser\Countries\CountriesFacade::getList()"
I am trying to install the package and have followed the installation steps one by one and got the error "Call to undefined method Webpatser\Countries\CountriesFacade::getList()" when trying to seed the countries table
I have the same problem. Somebody, please help.
I got it to work after editing the CountriesSeeder.php and changing the
$countries = (new Countries())->getList();
into
$countries = Countries::getList()
And it works.
you need to import 'use Webpatser\Countries\Countries', if you do not it wants to use the facade instead of the class instance
I add it work
use Webpatser\Countries\Countries;