akaunting/app/Jobs/Auth/DeleteInvitation.php

19 lines
313 B
PHP
Raw Normal View History

2022-06-01 10:15:55 +03:00
<?php
namespace App\Jobs\Auth;
use App\Abstracts\Job;
use App\Interfaces\Job\ShouldDelete;
class DeleteInvitation extends Job implements ShouldDelete
{
public function handle(): bool
{
\DB::transaction(function () {
$this->model->delete();
});
return true;
}
}