database
Run all pending database migrations to update the schema.
php artisan php artisan migrate
Syntax
Syntax
php artisan migrate [--force] [--pretend]
Explanation
Executes the up() method of all migrations that haven't been run yet. --force is required in production. --pretend shows the SQL without executing it. Migrations track which have been run in the migrations table.
Example
Example
php artisan migrate --force
Explanation
Executes the up() method of all migrations that haven't been run yet. --force is required in production. --pretend shows the SQL without executing it. Migrations track which have been run in the migrations table.