mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 03:31:31 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user