M
M
maaestr02022-03-11 21:04:16
Laravel
maaestr0, 2022-03-11 21:04:16

How to make a LARAVEL factory correctly?

Hello. The database has a table "Products" and a table "Prices for products" (which has the id of the product). There was a need to fill the database with fake data (using a factory, seeder ) and. There are no problems with products, but how to assign a price to each created product in a separate plate? I would be grateful for any advice.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2022-03-11
@maaestr0

Detailed analysis https://habr.com/en/post/645055/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question