Search code examples
laravellaravel-artisan

Laravel php artisan shows another popup window, is this a bug?


When write php artisan, i recive new command line, it's close quick, i not see result.

Picture Result when write php artisan


Solution

  • You need to put the directory that has php.exe in you WAMP installation, into your PATH (environment variables).

    Windows 10 and Windows 8

    1. In Search, search for and then select: System (Control Panel)
    2. Click the Advanced system settings link.
    3. Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
    4. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.
    5. reboot system and Reopen orginal Command prompt window with type cmd in RUN menu.
    6. place in laravel app folder in Command prompt window then run php artisan.

    "php artisan" command not work out of the laravel folder.