#32 subfleet classificiation scaffolding

This commit is contained in:
Nabeel Shahzad
2017-06-22 20:55:45 -05:00
parent 6bbb37061b
commit aaaead77a5
28 changed files with 493 additions and 348 deletions

View File

@@ -42,4 +42,11 @@ class Rank extends Model
public static $rules = [
'name' => 'unique',
];
public function subfleets() {
return $this->belongsToMany(
'App\Models\Subfleet',
'subfleet_rank'
)->withPivot('acars_pay', 'manual_pay');
}
}