akaunting 3.0 (the last dance)

This commit is contained in:
Burak Civan
2022-06-01 10:15:55 +03:00
parent cead09f6d4
commit d9c0764572
3812 changed files with 126831 additions and 102949 deletions

View File

@@ -3,18 +3,24 @@
namespace App\Jobs\Auth;
use App\Abstracts\Job;
use App\Events\Auth\RoleDeleted;
use App\Events\Auth\RoleDeleting;
use App\Interfaces\Job\ShouldDelete;
class DeleteRole extends Job implements ShouldDelete
{
public function handle(): bool
{
event(new RoleDeleting($this->model));
\DB::transaction(function () {
$this->model->delete();
$this->model->flushCache();
});
event(new RoleDeleted($this->model));
return true;
}
}