Skip to content

DB persistence with seeders #21

Answered by italianst4
italianst4 asked this question in Q&A
Discussion options

You must be logged in to vote

I realized the reason it wasn't working is because I was using direct DB inserts and not model generations.

The seeders were originally set up per Laravel docs (https://laravel.com/docs/9.x/seeding#writing-seeders).

I updated my seeders to seed with models. That did the trick!

Thank you.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by italianst4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants