laravel-countries icon indicating copy to clipboard operation
laravel-countries copied to clipboard

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

Open hannzern opened this issue 5 years ago • 4 comments

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

hannzern avatar Aug 06 '19 09:08 hannzern

I have the same problem. Somebody, please help.

the-provost avatar Aug 15 '19 05:08 the-provost

I got it to work after editing the CountriesSeeder.php and changing the

$countries = (new Countries())->getList();

into

$countries = Countries::getList()

And it works.

the-provost avatar Aug 15 '19 06:08 the-provost

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

ultrasibz avatar Aug 29 '19 11:08 ultrasibz

I add it work

use Webpatser\Countries\Countries;

kingwkb avatar May 13 '20 04:05 kingwkb