Skip to content

Seeders does not seem to work #69

Closed

Description

@fabarea

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

Activity

  1. changed the title [-]Seeder does not seem to work[/-] [+]Seeders does not seem to work[/+] on Jun 2, 2023
  2. as247 commented on Jun 2, 2023

    @as247
    Contributor

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

  3. fabarea commented on Jun 5, 2023

    @fabarea
    ContributorAuthor

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions