Looking to hire Laravel developers? Try LaraJobs

laravel-sql-generator maintained by royalcms

Description
convert Laravel migrations to raw SQL scripts
Last update
2021/01/07 09:03 (dev-master)
License
Links
Downloads
15

Comments
comments powered by Disqus

Packagist License Total Downloads

LARAVEL SQL GENERATOR

Convert Laravel migrations to raw SQL scripts

Usage

Step 1: Install Through Composer

composer require "royalcms/laravel-sql-generator:^2.0"

Step 2: Add the Service Provider

Now add the following to the providers array in your config/app.php

\Royalcms\Laravel\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'