Awards Administration
This commit is contained in:
38
app/Models/Award.php
Executable file
38
app/Models/Award.php
Executable file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
/**
|
||||
* Class Award
|
||||
*
|
||||
* @package Award\Models
|
||||
*/
|
||||
class Award extends BaseModel
|
||||
{
|
||||
public $table = 'awards';
|
||||
|
||||
public $fillable = [
|
||||
'title',
|
||||
'description',
|
||||
'image',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
|
||||
];
|
||||
|
||||
public static $rules = [
|
||||
'title' => 'required',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* any foreign keys
|
||||
*/
|
||||
/*
|
||||
public function subfleets() {
|
||||
return $this->belongsToMany(Subfleet::class, 'subfleet_fare')
|
||||
->withPivot('price', 'cost', 'capacity');
|
||||
}
|
||||
*/
|
||||
}
|
||||
Reference in New Issue
Block a user