So you have a failed #laravel job with error "Column not found: 1054 Unknown column 'uuid'... how to fix it? Here is how...
When Laravel job fails, it wants to write this info into the database, but during writing it reports an error that uuid is missing.
The easiest and fastest fix is just to update queue.php
file in config folder and instead of default database-uuids value for driver, just use database in failed section
'failed' => [
//'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), // do not use this
'driver' => env('QUEUE_FAILED_DRIVER', 'database'), // use this
'database' => env('DB_CONNECTION', 'mysql'),
'table' => 'failed_jobs',
],
and boom, the error is gone
easy peasy 🍋 squeezy 👍