'integer', 'auto_approve_acars' => 'bool', 'auto_approve_manual' => 'bool', 'auto_promote' => 'bool', ]; public static $rules = [ 'name' => 'required', 'hours' => 'required|integer', 'acars_base_pay_rate' => 'nullable|numeric', 'manual_base_pay_rate' => 'nullable|numeric', ]; /* * Relationships */ public function subfleets() { return $this->belongsToMany(Subfleet::class, 'subfleet_rank') ->withPivot('acars_pay', 'manual_pay'); } }