Home >PHP Framework >Laravel >Laravel fake data filling simple steps
This article mainly talks about the steps of filling in fake data in laravel. It is simple and convenient. Friends who are interested can learn about it. I hope it can help you.
xxx.php
database/factories/XxxlFactory.php
database/seeds/XxxTableSeeder.php
(For fields that are hidden
$hidden
in the model, you need to use the makeVisible() method to temporarily stop hidden, and an error occurs when writing to the database)
Related Tutorial: laravel video tutorial
The above is the detailed content of Laravel fake data filling simple steps. For more information, please follow other related articles on the PHP Chinese website!