How to install Laravel's Artisan?

前端 未结 5 1789
春和景丽
春和景丽 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条回答
  •  自闭症患者
    2021-01-30 10:36

    While you are working with Laravel you must be in root of laravel directory structure. There are App, route, public etc folders is root directory. Just follow below step to fix issue. check composer status using : composer -v

    First, download the Laravel installer using Composer:

    composer global require "laravel/installer"
    

    Please check with below command:

    php artisan serve
    

    still not work then create new project with existing code. using LINK

提交回复
热议问题