Search code examples
laravellaravel-5lumenlumen-5.2

Command "queue:failed-table" is not defined


For some reason, I'm unable to generate a failed jobs table in Lumen 5.2.

I've consulted:

The Lumen 5.2 Docs

The Lumen 5.1 Docs

The Laravel 5.2 Docs

And the only one mentioned generator artisan queue:failed-table simply returns:

[Symfony\Component\Console\Exception\CommandNotFoundException]  
Command "queue:failed-table" is not defined.                    
Did you mean one of these?                                      
    queue:failed                                                
    queue:forget                                                
    queue:flush                                                 
    queue:retry                                                 
    queue:work                                                  
    queue:listen                                                
    queue:restart 

Does anyone have a clue why this may be? The application itself is casting errors due to (well, errors) and not having a failed jobs table to process.

Much obliged!


Solution

  • It would appear that this was removed (unsure of which Lumen version). Creating one with the same structure as the Laravel failed_jobs table does the trick.