#32 subfleet classificiation scaffolding
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user