Awards Administration

This commit is contained in:
Servetas George
2018-01-28 21:19:35 +02:00
parent e57f0cb234
commit 78724e981c
16 changed files with 456 additions and 0 deletions

38
app/Models/Award.php Executable file
View 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');
}
*/
}