Blacklist
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user