39 lines
964 B
PHP
39 lines
964 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use App\QueryBuilders\TransactionOnlineBuilder;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class TransactionOnline extends Model
|
|
{
|
|
protected $table = 'transaction_online';
|
|
public $timestamps = false;
|
|
protected $primaryKey = 'id';
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'nokp','reference_no','nosiri','total_payment','tarikh','masa','status','billplz_id','kodcaw','norujukan','paid_at','customer_name','update_status','update_serahan','tempohbayar','tagportal','jenisbayaran'
|
|
];
|
|
|
|
/**
|
|
* The attributes excluded from the model's JSON form.
|
|
*
|
|
* @var array
|
|
*/
|
|
// protected $hidden = [];
|
|
|
|
public function cawangan()
|
|
{
|
|
return $this->belongsTo(Cawangan::class, 'kodcaw', 'kodcaw');
|
|
}
|
|
|
|
public function newEloquentBuilder($query)
|
|
{
|
|
return new TransactionOnlineBuilder($query);
|
|
}
|
|
}
|