Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run PHP Artisan Without Change Directory

How to run command php artisan serve without change to the proect directory?

I try to run this command but nothing happen

php /home/john/Documents/project/ artisan serve --port=1111

I want to insert this command to alisases at bash aliases so i don't need to insert the port anymore. Please help me, how to run artisan with specified directory?

like image 689
yudijohn Avatar asked May 27 '16 03:05

yudijohn


1 Answers

Try to remove space:

php /home/john/Documents/project/artisan serve --port=1111
like image 189
Alexey Mezenin Avatar answered Oct 04 '22 13:10

Alexey Mezenin