Random Things/Tricks I Have learned Today

·

1 min read

rollback and remigrate a table from middle of the folder in laravel 10 using these commands

Rollback Command:

php artisan migrate:rollback --path=\database\migrations\2024_05_16_094227_create_cloth_types_table.php

Remigrate Command:

php artisan migrate --path=\database\migrations\2024_05_16_094227_create_cloth_types_table.php

To add a new column name add 'assigned_employee_name' to 'cloth_orders' table.

php artisan make:migration add_assigned_employee_name_to_cloth_orders --table=cloth_orders