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.
Community Partners