silent-auction/app/Models/CarShowWinner.php

31 lines
505 B
PHP
Raw Permalink Normal View History

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()
{
return $this->hasMany('App\Models\Vehicles', 'id', 'vehicle');
}
public function awardCategory()
{
return $this->hasMany('App\Models\CarShowCategory', 'id', 'category');
}
}