Files
Atomcms-edit/app/Http/Controllers/Community/Staff/StaffController.php
T
2026-05-09 17:32:17 +02:00

22 lines
494 B
PHP
Executable File

<?php
namespace App\Http\Controllers\Community\Staff;
use App\Http\Controllers\Controller;
use App\Services\Community\StaffService;
use Illuminate\View\View;
class StaffController extends Controller
{
public function __construct(private readonly StaffService $staffService) {}
public function __invoke(): View
{
$employees = $this->staffService->fetchStaffPositions();
return view('community.staff', [
'employees' => $employees,
]);
}
}