Skip to content

Commit

Permalink
Merge pull request #12707 from valpuia/info-docs
Browse files Browse the repository at this point in the history
update infolist documentations
  • Loading branch information
danharrin authored May 9, 2024
2 parents e6c2d9d + 70f8bbc commit b5de297
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/infolists/docs/03-entries/01-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ public function infolist(Infolist $infolist): Infolist
}
```

If you're inside a [panel builder resource](../../panels/resources), the `infolist()` method should be static:

```php
use Filament\Infolists\Infolist;

public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
// ...
]);
}
```

Entries may be created using the static `make()` method, passing its unique name. You may use "dot notation" to access entries within relationships.

```php
Expand Down

0 comments on commit b5de297

Please sign in to comment.