It is necessary to create about 100 tables in a new project
I don't want to php artisan make: migration
every time
Create an alias
Edit ~ / .bash_aliases
~/.bash_aliases
#make migration
function mmi(){
while [ "$1" ]
do
command php artisan make:migration create_"$1"_table
shift
done
}
Loop as long as there are arguments and create with make: migration
After that, exit with exit and restart, or execute again with bash ~ / .bashrc
and load it.
However, it is troublesome because I have to write the inside by myself ... I wish I could do something here as well
Recommended Posts