'string', 'hours' => 'integer', 'auto_approve_acars' => 'integer', 'auto_approve_manual' => 'integer', 'auto_promote' => 'integer', ]; /** * Validation rules * * @var array */ public static $rules = [ 'name' => 'required|unique:ranks', 'hours' => 'required', ]; public function subfleets() { return $this->belongsToMany( 'App\Models\Subfleet', 'subfleet_rank' )->withPivot('acars_pay', 'manual_pay'); } }