How to populate data in laravel Framework
This article introduces you how to populate the data in the laravel framework, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Laravel in order to make the data more convenient to fill the database, a special filler class is defined, which can populate your database with test data. All the filler classes are placed in the database/seeds directory, so let's take a look.
Write Seeders and populate the data
Using the Artisan command make:seeder to generate Seeder
Php artisan make:seeder UserSeeder
Generate UserSeeder classes