'string', 'hours' => 'integer', 'auto_approve_acars' => 'boolean', 'auto_approve_manual' => 'boolean', 'auto_promote' => 'boolean', ]; /** * 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'); } }