mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
17 lines
405 B
PHP
17 lines
405 B
PHP
<?php
|
|
|
|
namespace Streamline\Services;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class UserService
|
|
{
|
|
public function pluckUserFullName(): array
|
|
{
|
|
return DB::table('users')
|
|
->whereNull('deleted_at')
|
|
->select(DB::raw('CONCAT(first_name, " ", last_name) AS full_name, id'))
|
|
->orderBy('first_name','asc')
|
|
->pluck('full_name', 'id')->toArray();
|
|
}
|
|
} |