updates to M3 module
This commit is contained in:
@@ -23,9 +23,10 @@ class M3ErrorsDispController extends Controller
|
||||
$skipdates = isset($request->skipdates) ? trim($request->skipdates) : "N";
|
||||
|
||||
# Get users from ICM428M
|
||||
$ICM428M = DB::connection(config('m3.connection', 'pgsql'))->table('icm428m')
|
||||
->select('R428US', 'R428FIRST', 'R428FAMILY')
|
||||
->get();
|
||||
$connection = config('m3.connection', 'pgsql');
|
||||
$ICM428M = \Illuminate\Support\Facades\Schema::connection($connection)->hasTable('icm428m')
|
||||
? DB::connection($connection)->table('icm428m')->select('R428US', 'R428FIRST', 'R428FAMILY')->get()
|
||||
: collect();
|
||||
$ICM428MCOL = collect($ICM428M);
|
||||
$ICM428MCOL->filter(function ($value) {
|
||||
return $value->R428US = trim($value->R428US);
|
||||
|
||||
Reference in New Issue
Block a user