Write the factory expression that creates one Post along with 3 related Comments in one call.
A feature test needs a Post that already has comments attached.
Ready to try it?
Create a free account and subscribe to take "Create a Model With a Related Factory". Earn 90 XP and track your internship progress.
Already have an account? Sign in