akaunting/app/Jobs/Common/DeleteWidget.php

19 lines
311 B
PHP
Raw Normal View History

<?php
namespace App\Jobs\Common;
use App\Abstracts\Job;
2021-09-06 11:53:57 +03:00
use App\Interfaces\Job\ShouldDelete;
2021-09-06 11:53:57 +03:00
class DeleteWidget extends Job implements ShouldDelete
{
2021-09-06 11:53:57 +03:00
public function handle(): bool
{
\DB::transaction(function () {
2021-09-06 11:53:57 +03:00
$this->model->delete();
});
return true;
}
}