Skip to content

Commit

Permalink
Merge branch '9.4.0' of github.com:BinarCode/laravel-restify into 9.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryk committed Dec 4, 2024
2 parents 22a2276 + 5ecd1a5 commit ffb936b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Fields/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ public function label($label)
public function serializeToValue($request)
{
return [
$this->label ?? $this->attribute => $this->value ?? $this->resolveDefaultValue($request),
$this->label ?? $this->attribute => $this->value ?? $this->resolveDefaultValue($request),
];
}

Expand All @@ -605,7 +605,6 @@ public function default($callback)
return $this;
}


/**
* Resolve the default value for the field.
*
Expand Down

0 comments on commit ffb936b

Please sign in to comment.