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

Seeders does not seem to work #69

Closed
fabarea opened this issue Jun 2, 2023 · 2 comments
Closed

Seeders does not seem to work #69

fabarea opened this issue Jun 2, 2023 · 2 comments

Comments

@fabarea
Copy link
Contributor

fabarea commented Jun 2, 2023

Whenever I run command :

php artisan migrate:fresh --seed

I get the following error:

In DatabaseServiceProvider.php line 89:

  Class "Faker\Factory" not found

I don't know how to fix it, but we can see the missing import in vendor/wpstarter/framework/src/WpStarter/Database/DatabaseServiceProvider.php

image

WpStarter version: v1.5.7

@fabarea fabarea changed the title Seeder does not seem to work Seeders does not seem to work Jun 2, 2023
@as247
Copy link
Contributor

as247 commented Jun 2, 2023

You need to install fakerphp/faker package https://packagist.org/packages/fakerphp/faker
"require-dev": {
"fakerphp/faker": "^1.22.0",
// ...
}

@as247 as247 closed this as completed Jun 3, 2023
@fabarea
Copy link
Contributor Author

fabarea commented Jun 5, 2023

@as247 thanks! I have taken the liberty of opening a pull request for the documentation.

wpstarter/docs#11

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

2 participants