I'm using Voyager Laravel, in a selectbox relation field with another table, even selecting an option is showing an error that the field is required. What to do?
Relationship:
Form:
I'm using Voyager Laravel, in a selectbox relation field with another table, even selecting an option is showing an error that the field is required. What to do?
Relationship:
Form:
Make the respective column optional in database. It will work.
Voyager automatically adds required attribute to the field when the column in database is set to 'Not Null'
Also set below rules for field in BREAD
{
"validation": {
"rule": "nullable|url"
}
}
Check de id field that you're using as a base for the relationship, maybe it has the same restriction.