Quick and easy alias for Laravel
Greg Brown

Greg Brown @elbugz

About: I've been a developer for a long, long time. Professionally it's been more than two decades. Yet, I have also had a number of other jobs and stories. My latest journey was co-owning a bakery.

Location:
São Paulo, Brazil
Joined:
Mar 9, 2019

Quick and easy alias for Laravel

Publish Date: Aug 26 '19
8 0

Alias for PHP ARTISAN

If you are on a Linux or Mac machine...

Open up your ~/.bash_profile with your favorite text editor and add the following line at the end of the file:

alias a="php artisan"

Save the file and load it for the current terminal profile with:

source ~/.bash_profile
  • - the next time you log onto a terminal window it should already be working

Lazy 'php artisan'

Now instead of typing in all those nasty characters 'php artisan' all you need to do is type a followed by your favorite command!

instead of typing:

php artisan view:clear
php artisan queue:restart
php artisan make:controller

You can now do:

a view:clear
a queue:restart
a make:controller

Isn't that a blessing?

Comments 0 total

    Add comment