Cleanup
This commit is contained in:
@ -28,11 +28,11 @@ class Bidders extends Model
|
||||
|
||||
public function checkout()
|
||||
{
|
||||
return $this->hasMany('App\Models\Checkout', 'bidder_num', 'idbidders');
|
||||
return $this->hasMany('App\Models\Checkout', 'bidder_num', 'idbidders');
|
||||
}
|
||||
|
||||
public function winningBids()
|
||||
{
|
||||
return $this->hasMany('App\Models\WinningBids', 'winning_bidder_num', 'idbidders');
|
||||
return $this->hasMany('App\Models\WinningBids', 'winning_bidder_num', 'idbidders');
|
||||
}
|
||||
}
|
||||
|
@ -6,8 +6,8 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Checkout extends Model
|
||||
{
|
||||
protected $table = 'checkout';
|
||||
protected $fillable = [
|
||||
protected $table = 'checkout';
|
||||
protected $fillable = [
|
||||
'bidder_num',
|
||||
'winnertotal',
|
||||
'payment_method',
|
||||
@ -16,20 +16,20 @@ class Checkout extends Model
|
||||
'cc_amount',
|
||||
'created_at',
|
||||
'updated_at'
|
||||
];
|
||||
];
|
||||
|
||||
protected $dates = [
|
||||
'created_at',
|
||||
'updated_at'
|
||||
];
|
||||
protected $dates = [
|
||||
'created_at',
|
||||
'updated_at'
|
||||
];
|
||||
|
||||
public function bidders()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Bidders', 'bidder_num', 'idbidders');
|
||||
}
|
||||
public function bidders()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Bidders', 'bidder_num', 'idbidders');
|
||||
}
|
||||
|
||||
public function paymentMethod()
|
||||
{
|
||||
return $this->hasMany('App\Models\PaymentMethods', 'payment_method', 'pm_id');
|
||||
}
|
||||
public function paymentMethod()
|
||||
{
|
||||
return $this->hasMany('App\Models\PaymentMethods', 'payment_method', 'pm_id');
|
||||
}
|
||||
}
|
||||
|
@ -6,23 +6,23 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Items extends Model
|
||||
{
|
||||
protected $table = 'items';
|
||||
protected $fillable = [
|
||||
protected $table = 'items';
|
||||
protected $fillable = [
|
||||
'item_desc',
|
||||
'item_min_bid',
|
||||
'item_est_value',
|
||||
'item_assigned_num',
|
||||
'created_at',
|
||||
'updated_at'
|
||||
];
|
||||
];
|
||||
|
||||
protected $dates = [
|
||||
'created_at',
|
||||
'updated_at'
|
||||
];
|
||||
protected $dates = [
|
||||
'created_at',
|
||||
'updated_at'
|
||||
];
|
||||
|
||||
public function winningBids()
|
||||
{
|
||||
return $this->belongsTo('App\Models\WinningBids', 'winning_item_num', 'iditems');
|
||||
}
|
||||
public function winningBids()
|
||||
{
|
||||
return $this->belongsTo('App\Models\WinningBids', 'winning_item_num', 'iditems');
|
||||
}
|
||||
}
|
||||
|
@ -6,21 +6,20 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PaymentMethods extends Model
|
||||
{
|
||||
protected $table = 'payment_methods';
|
||||
protected $fillable = [
|
||||
protected $table = 'payment_methods';
|
||||
protected $fillable = [
|
||||
'pm_name',
|
||||
'created_at',
|
||||
'updated_at'
|
||||
];
|
||||
];
|
||||
|
||||
protected $dates = [
|
||||
protected $dates = [
|
||||
'created_at',
|
||||
'updated_at'
|
||||
];
|
||||
|
||||
public function checkout()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Checkout', 'payment_method', 'pm_id');
|
||||
}
|
||||
];
|
||||
|
||||
public function checkout()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Checkout', 'payment_method', 'pm_id');
|
||||
}
|
||||
}
|
||||
|
@ -6,27 +6,27 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class WinningBids extends Model
|
||||
{
|
||||
protected $table = 'winning_bids';
|
||||
protected $fillable = [
|
||||
protected $table = 'winning_bids';
|
||||
protected $fillable = [
|
||||
'winning_bidder_num',
|
||||
'winning_cost',
|
||||
'winning_item_num',
|
||||
'created_at',
|
||||
'updated_at'
|
||||
];
|
||||
];
|
||||
|
||||
protected $dates = [
|
||||
protected $dates = [
|
||||
'created_at',
|
||||
'updated_at'
|
||||
];
|
||||
];
|
||||
|
||||
public function items()
|
||||
{
|
||||
return $this->hasMany('App\Models\Items', 'winning_item_num', 'iditems');
|
||||
}
|
||||
public function items()
|
||||
{
|
||||
return $this->hasMany('App\Models\Items', 'winning_item_num', 'iditems');
|
||||
}
|
||||
|
||||
public function bidders()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Bidders', 'winning_bidder_num', 'idbidders');
|
||||
}
|
||||
public function bidders()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Bidders', 'winning_bidder_num', 'idbidders');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user