I currently have to cd to my project to access php artisan
cd /var/www/html/project
php artisan
Is it possible to access it without the cd command by just running php artisan?
I tried creating an alias in the .bashrc file with no luck:
sudo nano .bashrc
Added this at the bottom:
alias artisan='/var/www/html/project/artisan'
Then when I ran php artisan it said "Could not open input file: artisan"
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire