silent-auction/app/Models/PeoplesChoice.php
2022-08-08 15:01:38 -04:00

27 lines
400 B
PHP

<?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(Vehicles::class, 'vehicle', 'id');
}
}