Laravel Seeding

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9


Database seeding allows you to insert data, general test data into your database. By default there is a DatabaseSeeder class under database/seeds.

Running seeders can be done with

php artisan db:seed

Or if you only want to process a single class

php artisan db:seed --class=TestSeederClass

As with all artisan commands, you have access to a wide array of methods which can be found in the api documentation

Got any Laravel Question?