mikebronner / nova-map-marker-field

Provides an visual interface for editing latitude and longitude coordinates.
MIT License
131 stars 36 forks source link

new `isRequired` method in laravel nova field causes error #28

Closed zareismail closed 4 years ago

zareismail commented 4 years ago

nova version: 2.5.0

this package uses an array for field attribute that causes error illegal offset type when the nova check isReuired in nova field.

mikebronner commented 4 years ago

@zareismail Thanks for reporting this issue. For now use the old way of making a field required, until this is fixed. :)

->rules("required")
zareismail commented 4 years ago

@zareismail Thanks for reporting this issue. For now use the old way of making a field required, until this is fixed. :)

->rules("required")

this error happening without uses rule on the field. when appended a rule to the field this error never happened

mikebronner commented 4 years ago

Ah, thanks for the clarification. This must be due to changes in Nova 2.5. I will try to get that sorted out today.

mikebronner commented 4 years ago

@zareismail This should now be fixed in release 0.1.15. Please try it and let me know how it works for you.

Thanks!