Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dissto committed Jul 17, 2024
1 parent 17df229 commit 32799f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Stubs/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,11 @@ public function getResourceCreateFormRequiredFields(Resource $resource): Collect
->filter(fn ($field) => $field->isRequired());
}

public function getResourceCreateFields(Resource $resource): Collection
{
return collect($this->getResourceCreateForm($resource)->getFlatFields(withHidden: true));
}

public function getResourceEditFormRequiredFields(Resource $resource): Collection
{
return collect($this->getResourceEditForm($resource)->getFlatFields())
Expand Down

0 comments on commit 32799f4

Please sign in to comment.