Seeding the countries table getting "Call to undefined method Webpatser\Countries\CountriesFacade::getList()"
Opened this issue · 4 comments
hannzern commented
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
the-provost commented
I have the same problem. Somebody, please help.
the-provost commented
I got it to work after editing the CountriesSeeder.php and changing the
$countries = (new Countries())->getList();
into
$countries = Countries::getList()
And it works.
ultrasibz commented
you need to import 'use Webpatser\Countries\Countries', if you do not it wants to use the facade instead of the class instance
kingwkb commented
I add it work
use Webpatser\Countries\Countries;