bagisto / laravel-data-faker

Creates fake data of products and customers for testing
MIT License
23 stars 23 forks source link

Unable to locate publishable resources. #20

Closed merdiano closed 2 years ago

merdiano commented 3 years ago

Bagisto 1.3.3 version published factories with php artisan vendor:publish --force --provider=Webkul\DataFaker\Providers\DataFakerServiceProvider

and run seeder. Got error Call to undefined function Webkul\DataFaker\Database\Seeders\factory().

fixed this by installing composer require laravel/legacy-factories run seeder again php artisan db:seed --class="Webkul\DataFaker\Database\Seeders\DatabaseSeeder"

Seeding: Webkul\DataFaker\Database\Seeders\CustomerAddressTableDataSeeder Seeded: Webkul\DataFaker\Database\Seeders\CustomerAddressTableDataSeeder (1,323.75ms) Seeding: Webkul\DataFaker\Database\Seeders\ProductCategoryTableDataSeeder Seeded: Webkul\DataFaker\Database\Seeders\ProductCategoryTableDataSeeder (126.52ms) Seeding: Webkul\DataFaker\Database\Seeders\ProductTableDataSeeder

In FactoryBuilder.php line 273:

Unable to locate factory for [Webkul\Product\Models\Product].

addresses and categories seeded but products not

jitendra-webkul commented 2 years ago

Fixed in #27 (Brand new faker)