Category: Laravel

You need to specify a meaningful filename like below: If you are creating migration to add a new table, you should pass --create parameter along with table name.

If you are looking to modify a table, you should consider using --table parameter to add some Boilerplate code.

If you want to rollback last migration, you can do so by running the following command: It will revert the latest migration.

Before adding a Table using migration, you can check if a table exists using. You can rename a column, using below command: To drop a column, you could use
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners