cleanup validation rules

This commit is contained in:
Nabeel Shahzad
2017-12-30 14:37:10 -06:00
parent 4bf3541e25
commit 7180bfb111
8 changed files with 32 additions and 64 deletions

View File

@@ -31,6 +31,11 @@ class Subfleet extends BaseModel
'gross_weight' => 'double',
];
public static $rules = [
'name' => 'required',
'type' => 'required',
];
public function aircraft()
{
return $this->hasMany('App\Models\Aircraft', 'subfleet_id');