Unable to execute Laravel artisan commands

后端 未结 5 1833
南方客
南方客 2021-02-01 16:39

I just installed the latest version of Laravel and tried to run the following command from my Git Bash:

php artisan migrate:make create_users_table --table=users         


        
5条回答
  •  南笙
    南笙 (楼主)
    2021-02-01 16:56

    You don't have artisan. There are two reasons:

    1. To be able to run php artisan you must be in your project folder, so first move to that folder using the cd command, then you can execute the command.

    2. You haven't created a Laravel project in that folder. You must create one with Composer.

提交回复
热议问题