Thursday, April 13, 2017

Can I run eg artisan commands without having to type php

OK, so I realise this is a bit lazy. :-) But I'd like to be able to run Artisan commands without having to type the "php" part. So just artisan migrate instead of php artisan migrate for example.

Is it possible to "install" artisan like this? Or do I just have to live with typing the four extra characters?

PS - yes, I know I just typed hundreds of characters to ask how to save typing four characters. :-) But I only have to ask once ... and if someone has an answer, I can save typing four characters hundreds of times.

My main dev box is a Mac with El Capitan 10.11.6, but I also use Ubuntu in VMs, test servers, etc.



via Brendan White

Advertisement