Narven / sublime-artisan

Sublime Text plugin to replace Laravel Artisan CLI (NO LONGER MAINTAINED)
20 stars 10 forks source link

artisan migrate:install #2

Open JYouness opened 11 years ago

JYouness commented 11 years ago

First of all, thanks a lot for this 'sublime' package, i really need it for my laravel projects. You just forgot a command : install migration table.

Under the folder Artisan in Packages folder :



{ "id" : "sublimeartisanmigrateinstall", "caption" : "Sublime Artisan Migrate:Install", "command" : "sublime_artisan_migrate_install" }



class SublimeArtisanMigrateInstallCommand(sublime_plugin.TextCommand): def run(self, edit): folder = self.view.window().folders()[0] os.chdir(folder) self.view.window().run_command("exec", { "cmd" : ["php", "artisan", "migrate:install"], "shell" : False, "working_dir" : folder})

sorry for my language, i'm a french speaker

Narven commented 11 years ago

Hi,

I will update it soon :)

thanks