M
M
Maxim Volkov2020-09-29 13:16:37
Vagrant
Maxim Volkov, 2020-09-29 13:16:37

Laravel on Homestead. Error running php artisan - The name 'php' is not recognized as a cmdlet name, functions... How to fix?

According to the documentation, I installed and deployed the project on Laravel under Homestead, Vagrant up - everything works. But when I try to run the php artisan make:controller PhotoController --resource
command from the laravel directory in the console

PS E:\for_laravel\projects\test\laravel> php artisan make:controller PhotoController --resource
php : Имя "php" не распознано как имя командлета, функции, файла сценария или выполняемой программы. 
Проверьте правильность написания имени, а также наличие и правильность пути, после чего повторите попытку.


My understanding is that the PATH path to PHP is needed on a windows system, but PHP is somewhere on the Homestead VM. How to solve the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question