Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

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

Open
zachary opened this issue Apr 8, 2016 · 14 comments
Open

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

zachary opened this issue Apr 8, 2016 · 14 comments

Comments

@zachary
Copy link

zachary commented Apr 8, 2016

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

@GrahamCampbell
Copy link

This package doesn't register any commands...

@mariomka
Copy link

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
Copy link

how to fix this error =.='

@GrahamCampbell
Copy link

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

@GrahamCampbell
Copy link

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

@VinceG
Copy link

VinceG commented Aug 30, 2016

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
Copy link

poisa commented Sep 21, 2016

Looks like this is now make:console

@jon-frankel
Copy link

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
Copy link

poisa commented May 5, 2017

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

@jon-frankel
Copy link

@poisa 5.4.5

@poisa
Copy link

poisa commented May 5, 2017

@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
Copy link

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
Copy link

fractalf commented Feb 1, 2018

I get this using latest Lumen (Homestead/Vagrant)

@abdelrahman-gad
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants