create models
This commit is contained in:
21
app/Models/Items.php
Normal file
21
app/Models/Items.php
Normal 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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user