This commit is contained in:
F4ilji
2026-04-07 17:54:26 +05:00
parent 04adba6682
commit 936b1fb5b0
468 changed files with 43498 additions and 4176 deletions
@@ -0,0 +1,20 @@
<?php
namespace App\Containers\Dashboard\Actions\Faculties;
use App\Containers\InstituteStructure\Models\Faculty;
use App\Containers\User\Models\User;
use App\Services\App\Cache\FacultyCacheService;
class DetachFacultyWorkerAction
{
public function __construct(
private readonly FacultyCacheService $cacheService,
) {}
public function run(Faculty $faculty, User $worker): void
{
$faculty->workers()->detach($worker->id);
$this->cacheService->clearAllCacheByModel();
}
}