How generate migrations file SQL in laravel

--

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.

--

--