-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Creating Fake Data with the Factory #364
Comments
Would this guide at PavelZanek.com be of any help to you? |
Yes, I tried it, but unfortunately I get an error and I don’t know what to do ((
|
Can you please share what your models (Product and ProductDescription) and the ProductFactory look like? |
Yes, of course, my model Doctor
My model DoctorTranslation
And finally my factory DoctorFactory
|
If I use the below solution everything works for me. First, I created probably similar migrations to yours. translatable.php:
City Table:
Doctor Table:
DoctorTranslation Table:
City model:
Doctor model:
DoctorTranslation model:
CityFactory:
DoctorFactory:
Seeder:
|
This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Please tell me how can I create a factory with Product (id) and ProductDescription (product_id, name) models using your wonderful package.
Is there a macro in the package for this?
The text was updated successfully, but these errors were encountered: