modified logic in loading inter unit staff codes
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 21s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 16s
Laravel Pint / pint (pull_request) Successful in 2m19s
Laravel Larastan / larastan (pull_request) Failing after 3m36s

This commit is contained in:
dhanabalan
2026-07-20 08:50:53 +05:30
parent aea402cd4c
commit f6179a0143

View File

@@ -69,7 +69,13 @@ class VisitorEntryResource extends Resource
->options(
EmployeeMaster::distinct()
->orderBy('code')
->pluck('code', 'code')
->get(['code', 'name'])
->mapWithKeys(function ($employee) {
return [
$employee->code => "{$employee->code} ({$employee->name})"
];
})
// ->pluck('code', 'code')
)
->searchable()
->reactive()