Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Nov 20, 2024
1 parent f5f9412 commit d40b1e2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -731,16 +731,6 @@ The `HasOne` field is typically a handler for a `Illuminate\Database\Eloquent\Re
$field = HasMany::make(__('Comments'), 'comments');
```

When using as subresource, you may define the related model's fields:

```php
$field->withFields(static function (Request $request): array {
return [
Textarea::make('Body'),
Boolean::make('Approved'),
];
});

### MorphMany

The `MorphMany` field is typically a handler for a `Illuminate\Database\Eloquent\Relations\MorphMany` relation:
Expand Down

0 comments on commit d40b1e2

Please sign in to comment.