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
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:
@@ -69,7 +69,13 @@ class VisitorEntryResource extends Resource
|
|||||||
->options(
|
->options(
|
||||||
EmployeeMaster::distinct()
|
EmployeeMaster::distinct()
|
||||||
->orderBy('code')
|
->orderBy('code')
|
||||||
->pluck('code', 'code')
|
->get(['code', 'name'])
|
||||||
|
->mapWithKeys(function ($employee) {
|
||||||
|
return [
|
||||||
|
$employee->code => "{$employee->code} ({$employee->name})"
|
||||||
|
];
|
||||||
|
})
|
||||||
|
// ->pluck('code', 'code')
|
||||||
)
|
)
|
||||||
->searchable()
|
->searchable()
|
||||||
->reactive()
|
->reactive()
|
||||||
|
|||||||
Reference in New Issue
Block a user