Laravel artisan plugin for zsh is a new package which helps you to run artisan from anywhere in the project tree, with auto-completion!

laravel artisan

Installation

First, download the plugin to your oh-my-zsh custom plugin location:

git clone https://github.com/jessarcher/zsh-artisan.git ~/.oh-my-zsh/custom/plugins/artisan

Then enable the plugin in your .zshrc file:

plugins=(
    artisan
    composer
    git
)

Note that you will need to re-source your .zshrc or restart zsh to pick up the plugin changes.

Usage

Simply use the command artisan from anywhere within the directory structure of a Laravel project and it will search up the tree for the artisan command and execute it. E.g:

$ pwd
~/MyProject/tests/Feature

$ artisan make:model MyAwesomeModel

Model created successfully.

Source Code

https://github.com/jessarcher/zsh-artisan