Open zachary opened 8 years ago
This package doesn't register any commands...
Then documentation is wrong I guess. https://laravelcollective.com/docs/5.2/bus#creating-commands
Creating Commands The Artisan CLI can generate new command classes using the make:command command: php artisan make:command PurchasePodcast
how to fix this error =.='
There is no error, the docs just say this command exists, and it doesn't. :)
Just use laravel's job generating command (if it's not been removed - i can't recall).
this appears to be still an issue. The docs clearly state to run it but there is no such command. https://laravelcollective.com/docs/5.2/bus
Moreover, we use an Excel package that requires this package, when installing this one the queue just wont work. it wont listen and it returns the following error
[InvalidArgumentException]
No handler registered for command [App\Jobs\UpdatePageViews]
when i remove the collective service provider from the config/app.php file and use the default Laravel one everything goes back to normal.
Anyone else experienced the same thing?
I can't understand the difference between the two, i am not sure why the collective one is better/worse or why one would need to use it over the default Laravel queue and jobs.
Thanks.
Looks like this is now make:console
make:command and make:console both fail for me.
@jon-frankel What Laravel version are you trying this on?
@poisa 5.4.5
@jon-frankel Hmmm... I can only confirm that at 5.4.16 this works. If you create a vanilla project, does it work?
$artisan make:command -h
Usage:
make:command [options] [--] <name>
Arguments:
name The name of the command.
Options:
--command[=COMMAND] The terminal command that should be assigned. [default: "command:name"]
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
--env[=ENV] The environment the command should run under
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Help:
Create a new Artisan command
I have got the same issue. My Laravel version is 5.4.36 The error is:
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "make:console" is not defined.
I get this using latest Lumen (Homestead/Vagrant)
I have an issue in laravel5.6 when i run "php artisan make:resource ProductResource" it responses me "command not defined" can anybody help me pls
as the subject, i did it follow the tutorial, please help, thanks