froiden/sql-generator

convert Laravel migrations to raw SQL scripts

Installs: 24 206

Dependents: 0

Suggesters: 0

Security: 0

Stars: 31

Watchers: 6

Forks: 9

Open Issues: 1

pkg:composer/froiden/sql-generator

dev-master 2018-06-26 08:11 UTC

This package is not auto-updated.

Last update: 2025-09-27 10:03:55 UTC


README

Packagist License Total Downloads

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

\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

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'