Fix report keseluruhan penebusan
This commit is contained in:
@@ -21,8 +21,10 @@ class PenebusanController extends Controller
|
|||||||
|
|
||||||
public function getSummaryLaporanTebus(Request $request)
|
public function getSummaryLaporanTebus(Request $request)
|
||||||
{
|
{
|
||||||
|
|
||||||
$active_cawangan_db_connection = Helper::getActiveCawanganDbConnection();
|
$active_cawangan_db_connection = Helper::getActiveCawanganDbConnection();
|
||||||
|
$arrahn_master_db_connection = Cawangan::all()->pluck('mysql')->toArray();
|
||||||
|
|
||||||
|
$active_cawangan_db_connection = array_intersect($active_cawangan_db_connection, $arrahn_master_db_connection);
|
||||||
|
|
||||||
$active_cawangan_db_name = array_map(function ($db_connection) {
|
$active_cawangan_db_name = array_map(function ($db_connection) {
|
||||||
return config('database.connections' . '.' . $db_connection . '.' . 'database');
|
return config('database.connections' . '.' . $db_connection . '.' . 'database');
|
||||||
|
|||||||
Reference in New Issue
Block a user