Giter VIP home page Giter VIP logo

Comments (7)

jlaswell avatar jlaswell commented on July 18, 2024

This looks nice to me! It's late here, but if I'm not missing anything,
this looks very clean to me. I really like the ability to throw a migration
into the make command already, and I think it's only natural that a seeder
should be available as well.

On Tue, Mar 15, 2016, 10:10 PM J Cobb [email protected] wrote:

When creating a model you can add also create a migration using using artisan
make:model Kitten -m. I am proposing adding a --seeder option to
additionally create a Seeder class to match that model.

I also think you should be able to add a Seeder class when creating a
migration:
artisan make:migration create_kittens_table --create --seeder.

I've worked up my suggested code for these two options at
laravel/[email protected]:make-seeder-with-model
laravel/framework@5.2...jwcobb:make-seeder-with-model

Is this something other people want? If so, are there any comments on the
suggested code?


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#13

from ideas.

jwcobb avatar jwcobb commented on July 18, 2024

Any other thoughts here?

from ideas.

gocanto avatar gocanto commented on July 18, 2024

It would create the factor as well?

from ideas.

jwcobb avatar jwcobb commented on July 18, 2024

@gocanto I'm not sure I understand your question.

from ideas.

Jeroen-G avatar Jeroen-G commented on July 18, 2024

These: https://laravel.com/docs/master/testing#model-factories

from ideas.

jwcobb avatar jwcobb commented on July 18, 2024

Currently it only adds the Seeder.

from ideas.

jwcobb avatar jwcobb commented on July 18, 2024

I submitted this to laravel/framework as PR 16177 and the documentation to laravel/docs PR 2790.

from ideas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.