mohammadfahadrao / mfr-tokens
There is no license information available for the latest version (v1.0.6) of this package.
Package to generate tables based upon response from API or by supplying key value pair manually.
v1.0.6
2024-05-22 11:33 UTC
README
Package to Create Migration File and Database Table from anywhere by supplying key value pairs. Saves time from running migration command and specifying columns in migration file for tables with loads of columns.
Installation
To deploy this package run
composer require mohammadfahadrao/mfr-tokens
In your Controller/Trait or anywhere in Laravel Project use it:
use Mohammadfahadrao\MfrTokens\MfrToken;
$mfr = new MfrToken();
$mfr->generateMigration(["name"=>'mfr',"age"=>21, ["categories"=>["name"=>"xyz","type"=>1]]]);
This'll create a new Migration file with those columns with prefix mfr_tokens
. After making desired changes just migrate it
php artisan migrate
Additional improvements are being done. Till then Enjoy!