*/ public function hours(): HasMany { return $this->hasMany(BillingJobHoursModel::class, 'billing_invoice_job_id'); } /** * @return array */ protected function casts(): array { return [ 'billing_invoice_id' => 'integer', 'customer_job_id' => 'integer', 'customer_id' => 'integer', 'billing_unit_id' => 'integer', 'sort_order' => 'integer', ]; } }