D
D
Dmitry Baskakov2020-11-03 19:57:49
Laravel
Dmitry Baskakov, 2020-11-03 19:57:49

How to make a repository file for Laravel migrations?

There are 3 records in the database, which are currently being manually entered. Is it possible to somehow automate their addition after each zeroing of the base?

In more detail, that is, there is a table of services and there are 3 records in it (3 types of services) and after each reset of the table, they disappear. It is necessary that they remain, but it is better that you can create a "storage" of this somewhere in the file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FanatPHP, 2020-11-03
@dmitrybascacov

such a file is called Seeder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question