Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/froiden/sql-generator
Laravel migration to sql file generator
https://github.com/froiden/sql-generator
Last synced: 2 months ago
JSON representation
Laravel migration to sql file generator
- Host: GitHub
- URL: https://github.com/froiden/sql-generator
- Owner: Froiden
- Created: 2016-12-13T11:49:42.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-26T08:11:10.000Z (over 6 years ago)
- Last Synced: 2024-10-07T04:48:30.668Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 29
- Watchers: 7
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
[![Packagist License](https://poser.pugx.org/froiden/sql-generator/license.png)]()
[![Total Downloads](https://poser.pugx.org/froiden/sql-generator/d/total.png)](https://packagist.org/packages/froiden/sql-generator)# LARAVEL SQL GENERATOR
Convert Laravel migrations to raw SQL scripts## Usage
### Step 1: Install Through Composer
```
composer require "froiden/sql-generator:dev-master"
```### Step 2: Add the Service Provider
Now add the following to the providers array in your config/app.php```php
\Froiden\SqlGenerator\SqlGeneratorServiceProvider::class,
```
### Step 3: Now publish the vendor
```bash
php artisan vendor:publish
```### Step 4: Run command
Then you will need to run these commands in the terminal```bash
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'