Laravel 5.5 Queued?

Asked

Viewed 79 times

0

I’m starting in Laravel, and installed 5.5 and after exceeding this command

php artisan make:command MyCommand --queued

The error is as follows

The "-queued" option does not exist.

Reading a little more, the command exists in the 5.1.

What is the correct command for 5.5?

  • There is no such command in creating command i at least did not see in the documentation, if by chance saw post the link!

  • @Virgilionovic, I couldn’t find it in the documentation. Several videos on the internet use this command in previous versions, I even installed an earlier version and it worked. I’m not finding a way to use this command on Laravel 5.5.

  • I haven’t tested this command, but you don’t even need to use... why use it??? what will change?

  • Agility, the file is created with the interfaces and Treats.

1 answer

1

The option --queued was defined in version 5.0 of Laravel and has already been defined as obsolete in version 5.1, where he went on to create Jobs. From this version all Jobs servants are queued by default and the option was removed completely (did not find in which version exactly this happened).

In version 5.5 and later you must use the command:

$ php artisan make:job <nome>

Like described in the documentation.

See more in:

Browser other questions tagged

You are not signed in. Login or sign up in order to post.