add api for all gadai by customer

This commit is contained in:
Zakwan Hamdan
2020-10-27 11:37:36 +08:00
parent 6cdce10db1
commit cf3555e593
4 changed files with 30 additions and 4 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ class CawanganController extends Controller
public function showAllCawangans()
{
return response()->json(Cawangan::all());
return response()->json(Cawangan::on('mysql7')->get());
}
public function showOneCawangan($code_cawangan)