Rectangle 27 1

php Unable to execute Laravel artisan commands?


composer create-project laravel/laravel your-project-name
php artisan migrate:make create_users_table --create=users

In this case the dependencies are not installed, so the vendor folder that contains Artisan doesn't exist. Running composer install in your project's root folder will install the dependencies vendor folder.

Run composer install in your project's root folder.

Thank you for providing not only the solution, but a straightforward explanation of the problem.

This happens when you create a project by downloading and extracting the laravel/laravel repo from GitHub, not by using the Composer command:

This is independent from your problem but your Artisan command is a bit deficient. You forgot =users (the table name) from the end. Also if you create a table you dont have to specify the table name again with the --table option so this command would be enough:

Yess thank you I was so confused about how this was not working. You have to run composer install

Note
Rectangle 27 1

php Unable to execute Laravel artisan commands?


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

Note