print sag

This commit is contained in:
LAPTOP-DGCU80CH\user1
2020-12-13 14:20:59 +08:00
parent aae73d8f36
commit 3dcbdb5a2b
4 changed files with 48 additions and 2 deletions
@@ -0,0 +1,18 @@
<?php
namespace App\Http\Controllers;
use App\CawanganDetail;
use App\Cawangan;
use Illuminate\Http\Request;
class CawanganDetailController extends Controller
{
public function getCawanganDetail($kodcaw){
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$cawangan_detail = CawanganDetail::on($cawangan['mysql'])->get();
return response()->json($cawangan_detail);
}
}