Download the PHP package obarlas/laravel-migrate-custom-command without Composer
On this page you can find all versions of the php package obarlas/laravel-migrate-custom-command. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download obarlas/laravel-migrate-custom-command
More information about obarlas/laravel-migrate-custom-command
Files in obarlas/laravel-migrate-custom-command
Package laravel-migrate-custom-command
Short Description Creates database migration files from custom templates.
License
Informations about the package laravel-migrate-custom-command
laravel-migrate-custom-command
Purpose of this package is to create database migration files from custom templates since custom migration templates are not available in Laravel.
Instead of hard coding table names in the migration class, I prefer to use global variables so I can just copy/paste the same creation and foreign key strings to other migration files easily, also I have default columns on my tables so this prevents me from rewriting every database migration file.
Usage
-
You must add the package to your app config.
-
In the folder of the package original stubs from the Laravel package can be found, create and copy them to your folder. Now you can edit the stubs according to your needs.
-
Usage is simple
- command checks if there is a variable in the stub file, and if no argument is passed it stops.