refactor ClientScheduleController; replace complex query logic with ListSchedulesAction for improved maintainability and clarity
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Containers\Schedule\Tasks;
|
||||
|
||||
use App\Containers\InstituteStructure\Models\Faculty;
|
||||
|
||||
class GetAllActiveFacultiesTask
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
return Faculty::query()->where('is_active', true)->get();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user