Froiden / sql-generator by ajayfroiden

convert Laravel migrations to raw SQL scripts
20,501
29
6
Package Data
Maintainer Username: ajayfroiden
Maintainer Contact: jayant@froiden.com (Jayant Soni)
Package Create Date: 2016-12-13
Package Last Update: 2018-06-26
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2025-04-03 15:03:47
Package Statistics
Total Downloads: 20,501
Monthly Downloads: 659
Daily Downloads: 46
Total Stars: 29
Total Watchers: 6
Total Forks: 9
Total Open Issues: 1

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'