phpvms/app/Models/Award.php

39 lines
577 B
PHP
Raw Normal View History

2018-01-29 03:19:35 +08:00
<?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');
}
*/
}