LaravelCollective / bus

Laravel Command Bus
MIT License
31 stars 10 forks source link

Command "make:command" is not defined. #8

Open zachary opened 8 years ago

zachary commented 8 years ago

as the subject, i did it follow the tutorial, please help, thanks

GrahamCampbell commented 8 years ago

This package doesn't register any commands...

mariomka commented 8 years ago

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

folkevil commented 8 years ago

how to fix this error =.='

GrahamCampbell commented 8 years ago

There is no error, the docs just say this command exists, and it doesn't. :)

GrahamCampbell commented 8 years ago

Just use laravel's job generating command (if it's not been removed - i can't recall).

VinceG commented 8 years ago

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.

poisa commented 8 years ago

Looks like this is now make:console

jon-frankel commented 7 years ago

make:command and make:console both fail for me.

screen shot 2017-05-05 at 3 02 28 pm

screen shot 2017-05-05 at 3 03 08 pm

poisa commented 7 years ago

@jon-frankel What Laravel version are you trying this on?

jon-frankel commented 7 years ago

@poisa 5.4.5

poisa commented 7 years ago

@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
kasra-appscore commented 7 years ago

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.

fractalf commented 6 years ago

I get this using latest Lumen (Homestead/Vagrant)

abdelrahman-gad commented 6 years ago

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