create models

This commit is contained in:
2018-12-23 09:00:22 -05:00
parent 90cebee2fa
commit 56c9a45c33
5 changed files with 124 additions and 0 deletions

21
app/Models/Items.php Normal file
View File

@ -0,0 +1,21 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Items extends Model
{
protected $table = 'items';
protected $fillable = [
'item_desc',
'item_min_bid',
'item_est_value',
'item_assigned_num'
];
public function winningBids()
{
return $this->belongsTo('App\Models\WinningBids', 'winning_item_num', 'iditems');
}
}