2017 © Pedro Peláez
 

library sql-generator

convert Laravel migrations to raw SQL scripts

image

froiden/sql-generator

convert Laravel migrations to raw SQL scripts

  • Tuesday, June 26, 2018
  • by ajayfroiden
  • Repository
  • 4 Watchers
  • 4 Stars
  • 252 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 47 % Grown

The README.md

Packagist License Total Downloads, (*1)

LARAVEL SQL GENERATOR

Convert Laravel migrations to raw SQL scripts, (*2)

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, (*3)

\Froiden\SqlGenerator\SqlGeneratorServiceProvider::class,

Step 3: Now publish the vendor

php artisan vendor:publish

Step 4: Run command

Then you will need to run these commands in the terminal, (*4)

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', (*5)

The Versions

26/06 2018

dev-master

9999999-dev

convert Laravel migrations to raw SQL scripts

  Sources   Download

MIT

The Requires

 

by Jayant Soni