Seiten · Laravilt
Creating Entries
Write the PHP class for a custom infolist entry.
Basic entry
Extend Laravilt\Infolists\Entries\Entry and add your options to toLaraviltProps():
php
The serialized component key is the snake_case class name (progress_entry).
Entry already provides color(), icon(), iconColor(), copyable() and formatStateUsing(). Use them instead of redefining them.
Usage
php
Extending an existing entry
To preconfigure a built-in entry, extend it. It keeps the parent's frontend component:
php