Open Mina-R-Meshriky opened 3 years ago
Is your DB empty? At this point it is a hard requirement, that for each model that has a Schema
, sample data must be present.
but why dont we use the model factory for the sample ? instead of the database I mean or if the database has no data, don't insert a sample
To the first question: The factory would be satisfying for simple schemas. But I think for more complex setups with many models and relations, the usage of a seeded DB is more suitable. This allows the developer to create a complete dataset via Seeder or an imported DB dump. But yes it is planned to make the sample generation completely optional!
I am trying the package out of the box, couldn't generate the documentation on a running project though