}
+
public function postSetFields()
{
foreach ($this->_fieldsToAppend as $item) {
if (get_class($this) !== config("auth.providers.users.model")) {
foreach ($this->_fields as $name => $field) {
$field->setPermissions();
- $field->setPermissions();
}
}
}
// if not otherwise specified, the hidden input should take up no space in the form
$field['wrapper']['class'] = $field['wrapper']['class'] ?? $field['wrapperAttributes']['class'] ?? "hidden";
$v=old(square_brackets_to_dots($field['name'])) ?? $field['value'] ?? $field['default'] ?? '';
- if(!is_string($v)){
+ if(is_array($v) || $v instanceof stdClass){
$v=json_encode($v);
}
@endphp