Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Jan 10, 2024
2 parents 7c7b298 + 958067c commit 8c9ca17
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/form/src/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,15 @@ static function ($value) {
return $this;
}

public function fillTo(string $path, mixed $data, bool $decodeJson = true): static
{
$data = TypeCast::toArray($data);

$data = Arr::set([], $path, $data, '/');

return $this->fill($data, $decodeJson);
}

/**
* bind
*
Expand Down

0 comments on commit 8c9ca17

Please sign in to comment.