How to install Laravel's Artisan?

前端 未结 5 1749
春和景丽
春和景丽 2021-01-30 10:06

I want to create migrations in Laravel but according to the tutorials I need the Artisan CLI. The php command works fine and I\'m on Windows. I type in php ar

5条回答
  •  猫巷女王i
    2021-01-30 10:43

    Explanation: When you install a new laravel project on your folder(for example myfolder) using the composer, it installs the complete laravel project inside your folder(myfolder/laravel) than artisan is inside laravel.that's, why you see an error,

    Could not open input file: artisan

    Solution: You have to go inside by command prompt to that location or move laravel files inside your folder.

提交回复
热议问题