I've MAMP installed and am currently watching some Laravel tutorials, however, when I got to the part of making controllers with artisan, I get this error when I type php artisan make:controller.
Asked
Active
Viewed 698 times
0
-
'php' is not recognized as an internal or external command, operable program or batch file – Onyx Jan 22 '18 at 17:16
-
try add php to environmental variable – Kuba Zabielski Jan 22 '18 at 17:21
-
Are you on Windows or Mac? That looks like a Windows error in which you need to add an environmental variable to the PHP install https://stackoverflow.com/questions/31291317/php-is-not-recognized-as-an-internal-or-external-command-in-command-prompt – Chris Morris Jan 22 '18 at 17:22