Merge pull request 'modified logic in loading inter unit staff codes' (#845) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 25s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 25s
Reviewed-on: #845
This commit was merged in pull request #845.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user