This commit is contained in:
2018-12-23 10:26:26 -05:00
parent bf1906e215
commit cd8c610d4a
10 changed files with 308 additions and 305 deletions

View File

@ -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');
}
}