Larave5 sublime Artisan 命令行插件

转+翻:

Laravel 5 Artisan 命令行插件

用 Laravel 4 Artisan commands插件改造

This plugin allows you the run the normal Artisan CLI using the Sublime Text interface, without having to open and use the command line.

Several of the commands, such as Laravel Artisan: Make: Migration Schema require laracasts/generators to be installed, as the associated commands are not native to Laravel (yet).

可用的命令

General

  • Laravel Artisan 5: Clear Compiled
  • Laravel Artisan 5: Down
  • Laravel Artisan 5: Help
  • Laravel Artisan 5: List
  • Laravel Artisan 5: Migrate
  • Laravel Artisan 5: Optimize
  • Laravel Artisan 5: Serve
  • Laravel Artisan 5: Stop Serving
  • Laravel Artisan 5: Up
App
  • Laravel Artisan 5: App:Name
Auth
  • Laravel Artisan 5: Auth:Clear Resets
Cache
  • Laravel Artisan 5: Cache:Clear
  • Laravel Artisan 5: Cache:Table
Config
  • Laravel Artisan 5: Config:Cache
  • Laravel Artisan 5: Config:Clear
DB
  • Laravel Artisan 5: DB:Seed
Event
  • Laravel Artisan 5: Event:Generate
Key
  • Laravel Artisan 5: Key:Generate
Make
  • Laravel Artisan 5: Make:Controller
  • Laravel Artisan 5: Make:Event
  • Laravel Artisan 5: Make:Middleware
  • Laravel Artisan 5: Make:Migration
  • Laravel Generate 5: Migration: Schema
  • Laravel Generate 5: Migration: Pivot
  • Laravel Artisan 5: Make:Model
  • Laravel Artisan 5: Make:Provider
  • Laravel Artisan 5: Make:Request
  • Laravel Artisan 5: Make:Seeder
Migrate
  • Laravel Artisan 5: Migrate:Install
  • Laravel Artisan 5: Migrate:Refresh
  • Laravel Artisan 5: Migrate:Reset
  • Laravel Artisan 5: Migrate:Rollback
  • Laravel Artisan 5: Migrate:Status
Queue
  • Laravel Artisan 5: Queue:List Failed Jobs
  • Laravel Artisan 5: Queue:Failed Table
  • Laravel Artisan 5: Queue:Flush
  • Laravel Artisan 5: Queue:Forget
  • Laravel Artisan 5: Queue:Listen
  • Laravel Artisan 5: Queue:Restart
  • Laravel Artisan 5: Queue:Retry
  • Laravel Artisan 5: Queue:Subscribe
  • Laravel Artisan 5: Queue:Table
  • Laravel Artisan 5: Queue:Work
Route
  • Laravel Artisan 5: Route:Cache
  • Laravel Artisan 5: Route:Clear
  • Laravel Artisan 5: Route:List
Schedule
  • Laravel Artisan 5: Schedule:Run
Session
  • Laravel Artisan 5: Session:Table
Vendor
  • Laravel Artisan 5: Vendor:Publish
View
  • Laravel Artisan 5: View:Clear
Custom
  • Laravel Artisan 5: Custom Command

Custom Commands

You can add custom commands. Use Preferences/Package Settings/Laravel 5 Artisan/Commands – User menu item.

Simple command structure:

 

[        {
“caption”: “Laravel Artisan: Deploy Project”,
“command”: “laravel5_artisan”,
“args”: {
“command”: “deploy”,
“fill_in”: true,
“fill_in_lable”: “Enter the branch name with options”
}
}
]

Change command caption and command in args. Use fill_in: true if you need some input for your command andfill_in_lable: “Text” for message.

安装:

使用 Package Controller 

或在Sublime Text 文件夹里Packages目录下创建一个目录,名字为Laravel 5 Artisan,复制文件到这个目录里 。

用法:

按下  Cmd + Shift + P 调出 下列 命令列表,搜索可用的命令,然后选择命令。

或者你可以点击菜单栏的Tools下的Laravel… 

提示:

  • Artisan文件需要在根文件夹结构的边栏中。
  • 需要在Sublime Text 用户配置里插入一条值(Preferences->settings-user)  “show_panel_on_build”: true  或点击菜单里的  Tools/Build Results/Show Build Results menu来查看结果.

原版最新版下载地址 :https://github.com/dydx/Laravel-5-Artisan/archive/master.zip

本地下载: 

Laravel 5 Artisan

去打赏

您的支持将鼓励我们继续创作!

[微信] 扫描二维码打赏

[支付宝] 扫描二维码打赏

发表评论