Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

36
app/Models/FailedJob.php Normal file
View File

@@ -0,0 +1,36 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Artisan;
class FailedJob extends Model
{
use HasFactory;
protected $fillable = [
'uuid',
'connection',
'queue',
'payload',
'exception',
'failed_at',
];
protected $casts = [
'failed_at' => 'datetime',
];
public function retry()
{
try {
Artisan::call('queue:retry', ['id' => $this->uuid]);
} catch (\Exception $e) {
return $e->getMessage();
}
// $this->delete();
}
}