updates to add show judging
This commit is contained in:
30
app/Models/CarShowWinner.php
Normal file
30
app/Models/CarShowWinner.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user