schema:dump

Dump the given database schema

Options

  • database - The database connection to use Optional
  • path - The path where the schema dump file should be stored Optional
  • prune - Delete all existing migration files Optional
php artisan schema:dump [--database [DATABASE]] [--path [PATH]] [--prune]