Blacklist

This commit is contained in:
afiq
2021-08-20 04:23:48 +08:00
parent 9e0eacce3c
commit 1db358001b
4 changed files with 36 additions and 8 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Blacklist extends Model
{
protected $table = 'senhitam';
protected $connection = 'mysql7';
/**
* The attributes that are mass assignable.
*
* @var array
*/
// protected $fillable = [
// ];
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
// protected $hidden = [];
}
@@ -9,6 +9,7 @@ use App\Gadai;
use App\Lelong;
use App\Cawangan;
use App\Poskod;
use App\Blacklist;
use Illuminate\Http\Request;
use Carbon\Carbon;
@@ -703,4 +704,11 @@ class CustomerController extends Controller
}
return response()->json(number_format($jumlahBakiLelong,2));
}
public function blacklistCustomer(Request $request){
$blacklist = Blacklist::where('nokp',$request->nokp)->first();
return response()->json($blacklist);
}
}