The Laravel Artisan Cheatsheet now has an API. Learn more.

db:seed

Seed the database with records

Options

  • class - The class name of the root seeder Optional
  • database - The database connection to seed Optional
  • force - Force the operation to run when in production Optional

Arguments

  • class - The class name of the root seeder Optional
php artisan db:seed [--class [CLASS]] [--database [DATABASE]] [--force] [--] [<class>]