027 Creating migration and dropping them| Rollback migration | Drop Tables | Laravel 11| Tutorial#3

Поделиться
HTML-код
  • Опубликовано: 9 ноя 2024
  • In this laravel tutorial, drop database table using migrations in laravel. Rollback migration i.e. dropping your tables using migration.
    Command:
    php artisan migrate:rollback - Last migrations will be rollbacked. All the tables will be dropped created in last migration.
    php artisan migrate:rollback --step=3 - no of migration you want to rollback
    define with option step
    php artisan migrate:reset - drop all tables created by migrations

Комментарии •