'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', ]; /** * Get the company that owns the contract. */ public function company(): BelongsTo { return $this->belongsTo(Company::class); } /** * Get the user who created the record. */ public function creator(): BelongsTo { return $this->belongsTo(User::class, 'creator_id'); } }