silent-auction/app/Models/PeoplesChoice.php

27 lines
400 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()
{
2022-08-08 15:01:38 -04:00
return $this->belongsTo(Vehicles::class, 'vehicle', 'id');
2019-07-11 20:55:45 -04:00
}
}