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 #61

Closed
cognitus opened this issue Mar 30, 2024 · 3 comments · Fixed by #62
Closed

seeders #61

cognitus opened this issue Mar 30, 2024 · 3 comments · Fixed by #62
Assignees
Labels
enhancement New feature or request

Comments

@cognitus
Copy link
Contributor

Hello,

is posible create a seed from database instead from factory? from laravel I only get the seed generated from the .stub

    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        {namespace_class}::factory()->count(10)->create();
    }
@cable8mm
Copy link
Owner

cable8mm commented Apr 1, 2024

I'm having trouble grasping your explanation about that. The Xeed don't generate a seed from factory. Could you please provide further clarification on what you mean?

@cognitus
Copy link
Contributor Author

cognitus commented Apr 1, 2024

I read on reddit, is posible generate seeder class like orangehill/iseed, but to run It I only get a class where the factory is seed

@cable8mm cable8mm mentioned this issue Apr 3, 2024
@cable8mm cable8mm linked a pull request Apr 3, 2024 that will close this issue
cable8mm added a commit that referenced this issue Apr 3, 2024
* Create `faker-seeders` command

* Include a section in the README for the Faker seeders command
@cable8mm cable8mm self-assigned this Apr 3, 2024
@cable8mm cable8mm added the enhancement New feature or request label Apr 3, 2024
@cable8mm
Copy link
Owner

cable8mm commented Apr 3, 2024

Develop a new command for generating seeders without utilizing factories.

bin/console faker-seeders or php artisan xeed:faker-seeders

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

Successfully merging a pull request may close this issue.

2 participants