Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeding the countries table getting "Call to undefined method Webpatser\Countries\CountriesFacade::getList()" #109

Open
hannzern opened this issue Aug 6, 2019 · 4 comments

Comments

@hannzern
Copy link

hannzern commented Aug 6, 2019

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
Copy link

I have the same problem. Somebody, please help.

@the-provost
Copy link

the-provost commented Aug 15, 2019

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
Copy link

you need to import 'use Webpatser\Countries\Countries', if you do not it wants to use the facade instead of the class instance

@kingwkb
Copy link

kingwkb commented May 13, 2020

I add it work

use Webpatser\Countries\Countries;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants