Files
silent-auction/app/Models/CarShowWinner.php
T
2026-04-20 10:07:36 -04:00

32 lines
522 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class CarShowWinner extends Model
{
protected $table = 'car_show_winners';
protected $fillable = [
'vehicle',
'category',
'place',
'total_score'
];
protected $dates = [
'created_at',
'updated_at'
];
public function awardVehicle()
{
return $this->hasMany('App\Models\Vehicles', 'id', 'vehicle');
}
public function awardCategory()
{
return $this->hasMany('App\Models\CarShowCategory', 'id', 'category');
}
}