2019-07-11 20:55:45 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class CarShowWinner extends Model
|
|
|
|
{
|
|
|
|
protected $table = 'car_show_winners';
|
|
|
|
protected $fillable = [
|
|
|
|
'vehicle',
|
|
|
|
'category',
|
|
|
|
'place'
|
|
|
|
];
|
|
|
|
|
|
|
|
protected $dates = [
|
|
|
|
'created_at',
|
|
|
|
'updated_at'
|
|
|
|
];
|
|
|
|
|
|
|
|
public function awardVehicle()
|
|
|
|
{
|
2022-08-08 20:36:05 -04:00
|
|
|
return $this->hasMany(Vehicles::class, 'id');
|
2019-07-11 20:55:45 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
public function awardCategory()
|
|
|
|
{
|
2022-08-08 20:39:33 -04:00
|
|
|
return $this->hasMany(CarShowCategory::class, 'id');
|
2019-07-11 20:55:45 -04:00
|
|
|
}
|
|
|
|
}
|