Convert Laravel migrations to raw SQL scripts
composer require "froiden/sql-generator:dev-master" --dev
php artisan vendor:publish
Then you will need to run these commands in the terminal
php artisan sql:generate
This Will Generate "database.sql" in 'database/sql' directory If you want change path directory go to 'config/sql_generator.php' change value 'defaultDirectory'