Hitesh Modha
Hitesh Modha

Reputation: 2790

Create Controller using artisan - InvalidArgumentException

I am new to laravel.

I have copied command to create controller from a book and I am trying to run that command:

php artisan Usercontroller:make users

I am getting error:

  [InvalidArgumentException]
  There are no commands defined in the "Usercontroller" namespace.
  Did you mean this?
      controller

Current working directory is project directory:

C:\wamp\www\laravel>

Upvotes: 0

Views: 1336

Answers (2)

bhargav joshi
bhargav joshi

Reputation: 183

There is a typo in commmand,

you should use

php artisan controller:make users

Hope this helps.

Upvotes: 2

Laurence
Laurence

Reputation: 60058

Command should be

php artisan controller:make users

Upvotes: 2

Related Questions