I am trying to generate a provider using Artisan as described on the documentation page [1] by running:
php artisan make:observer AdServiceProvider
However I get the following error:
[InvalidArgumentException] There are no commands defined in the “make” namespace.
Am I doing something wrong or is the documentation perhaps outdated?
http://laravel.com/docs/master/providers
Advertisement
Answer
There is no make:observer command, neither in the documentation, nor in the command list.
As you have tagged your question you are using Laravel 4, there is no make:*** command whatsoever.
For Laravel 5:
To create a new provider, simply call
php artisan make:provider [provider name]
You can always get a list with all commands available by typing
php artisan