billplz
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\PortalBillplz;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class PortalBillplzController extends Controller
|
||||||
|
{
|
||||||
|
public function getCollectionIDCawangan(Request $request){
|
||||||
|
$collection_id = PortalBillplz::on('mysql7')->select('collection_id')->where('kodcaw',$request->kodcaw)->first();
|
||||||
|
|
||||||
|
return response()->json($collection_id['collection_id']);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class PortalBillplz extends Model
|
||||||
|
{
|
||||||
|
protected $table = 'portal_billplz_collection_id';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The attributes that are mass assignable.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
// protected $fillable = [
|
||||||
|
|
||||||
|
// ];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The attributes excluded from the model's JSON form.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
// protected $hidden = [];
|
||||||
|
}
|
||||||
@@ -414,6 +414,9 @@ $router->group(['prefix'=>'api'], function () use ($router){
|
|||||||
$router->get('komoditi/rekod/transaksi',['uses'=>'KomuditiController@rekodTransaksiKomoditi']);
|
$router->get('komoditi/rekod/transaksi',['uses'=>'KomuditiController@rekodTransaksiKomoditi']);
|
||||||
|
|
||||||
$router->get('laporan/harian',['uses'=>'LaporanController@laporanHarian']);
|
$router->get('laporan/harian',['uses'=>'LaporanController@laporanHarian']);
|
||||||
|
|
||||||
|
//Collection ID Billplz
|
||||||
|
$router->get('billplz/collectionid',['uses'=>'PortalBillplzController@getCollectionIDCawangan']);
|
||||||
});
|
});
|
||||||
|
|
||||||
$router->group(['prefix'=>'e-arrahn'], function () use ($router){
|
$router->group(['prefix'=>'e-arrahn'], function () use ($router){
|
||||||
|
|||||||
Reference in New Issue
Block a user