akaunting/app/Jobs/Common/DeleteReport.php
2021-09-06 11:53:57 +03:00

19 lines
311 B
PHP

<?php
namespace App\Jobs\Common;
use App\Abstracts\Job;
use App\Interfaces\Job\ShouldDelete;
class DeleteReport extends Job implements ShouldDelete
{
public function handle(): bool
{
\DB::transaction(function () {
$this->model->delete();
});
return true;
}
}