hasMany(Invoice::class); } /** * Return value attribute for belongsto search component * * @return \Illuminate\Database\Eloquent\Casts\Attribute */ protected function value(): Attribute { return new Attribute( get: fn () => $this->id, ); } }