gnarula / sublime-laravelgenerator

A Sublime Text Plugin which allows using Laravel 4 Generators by Jeffrey Way via the command palette.
165 stars 44 forks source link

Add Helper Migrate Command #4

Closed JeffreyWay closed 11 years ago

JeffreyWay commented 11 years ago

My generators tool, as you know, assists with the creation and boilerplate of files. After showing your plugin to people, I've already been asked about how to migrate the database from ST as well.

Can you add one more command that simply triggers a built in Artisan command? Something like:

{
    "caption": "Laravel Migrate",
    "command": "generate",
}

This command doesn't require any args. It will simply execute:

php artisan migrate

In fact, it might be nice to give users an easy way to extend this as well, without bothering you. Something like:

{
    "caption": "Laravel Migrate Rollback",
    "command_to_execute": "php artisan migrate:rollback"
}