Laravel
MySQL
Postgresql
Migrations
How generate migrations file SQL in laravel
Jun 26, 2024
Sometimes you need to see what will be the command SQL generated by the Laravel Migrations, so I hope this helps if you need it:
php artisan migrate --pretend --no-ansi > migrate.sql
after that just open the file migrate.sql and see the queries.
