silent-auction/app/Models/PeoplesChoice.php

27 lines
406 B
PHP
Raw Normal View History

2019-07-11 20:55:45 -04:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PeoplesChoice extends Model
{
protected $table = 'peoples_choice';
protected $fillable = [
'vehicle',
'pc_count',
'created_at',
'updated_at'
];
protected $dates = [
'created_at',
'updated_at'
];
public function vehicles()
{
return $this->belongsTo('App\Models\Vehicles', 'vehicle', 'id');
}
}