Some checks failed
Tests / PHP 8.1 (push) Has been cancelled
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
19 lines
318 B
PHP
19 lines
318 B
PHP
<?php
|
|
|
|
namespace App\Jobs\Common;
|
|
|
|
use App\Abstracts\Job;
|
|
use App\Interfaces\Job\ShouldDelete;
|
|
|
|
class DeleteContactPerson extends Job implements ShouldDelete
|
|
{
|
|
public function handle(): bool
|
|
{
|
|
\DB::transaction(function () {
|
|
$this->model->delete();
|
|
});
|
|
|
|
return true;
|
|
}
|
|
}
|