Run artisan from anywhere in with Laravel artisan plugin for zsh
Laravel artisan plugin for zsh is a new package which helps you to run artisan from anywhere in the project tree, with auto-completion!
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
This post is submitted by our members. Submit a new post.
Tags: Tutorials Packages Sources Laravel 5.7 Laravel 5.6 Laravel 5.5 Laravel 5.4 Laravel 5.3 Laravel 5 Intermediate