Artisan.page

schema:dump

Dump the given database schema

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

Options

databaseOptional

The database connection to use

pathOptional

The path where the schema dump file should be stored

pruneOptional

Delete all existing migration files