Package Data | |
---|---|
Maintainer Username: | ianzhang001 |
Maintainer Contact: | 24033474@qq.com (Ian Zhang) |
Package Create Date: | 2017-01-17 |
Package Last Update: | 2017-01-17 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-02-05 03:15:16 |
Package Statistics | |
---|---|
Total Downloads: | 6 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
Convert Laravel migrations to raw SQL scripts
composer require "froiden/sql-generator:dev-master"
Now add the following to the providers array in your config/app.php
\Froiden\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'