convert Laravel migrations to raw SQL scripts
royalcms/laravel-sql-generator is a Laravel package for convert laravel migrations to raw sql scripts.
It currently has 0 GitHub stars and 15 downloads on Packagist (latest version v2.1.2).
Install it with composer require royalcms/laravel-sql-generator.
Discover more Laravel packages by royalcms
or browse all Laravel packages to compare alternatives.
Last updated
Convert Laravel migrations to raw SQL scripts
composer require "royalcms/laravel-sql-generator:^2.0"
Now add the following to the providers array in your config/app.php
\Royalcms\Laravel\SqlGenerator\SqlGeneratorServiceProvider::class,
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'