Artisan.page

schema:dump

Dump the given database schema

Terminal
php artisan schema:dump [--database [DATABASE]] [--path [PATH]] [--prune] [--without-migration-data]

Options

databaseOptional

The database connection to use

pathOptional

The path where the schema dump file should be stored

pruneOptional

Delete all existing migration files

without-migration-dataOptional

Dump the schema without the migration data