'date:Y-m-d', 'end_date' => 'date:Y-m-d', 'warranty_start_date' => 'date:Y-m-d', 'warranty_end_date' => 'date:Y-m-d', 'software_start_date' => 'date:Y-m-d', 'software_end_date' => 'date:Y-m-d', 'status' => 'integer', 'settings' => 'array', ]; /** * Get the contract history for the company. */ public function contracts(): HasMany { return $this->hasMany(CompanyContract::class)->latest(); } /** * Get the users for the company. */ public function users(): HasMany { return $this->hasMany(User::class); } /** * Get the machines for the company. */ public function machines(): HasMany { return $this->hasMany(Machine::class); } }