### Install Filament Collapse Package Source: https://github.com/drafolin/filament-collapse/blob/main/README.md Installs the Filament Collapse package using the Composer dependency manager. ```bash composer require drafolin/filament-collapse ``` -------------------------------- ### Publish Filament Collapse Views Source: https://github.com/drafolin/filament-collapse/blob/main/README.md Optionally publishes the package's views to allow for customization using the Artisan command. ```bash php artisan vendor:publish --tag="filament-collapse-views" ``` -------------------------------- ### Using Filament Collapse in Form Schema (PHP) Source: https://github.com/drafolin/filament-collapse/blob/main/README.md Demonstrates how to add a FilamentCollapse field to a Filament form schema, grouping related TextInput fields. Labels provided to the grouped fields are transformed into placeholders within the collapsed group. ```php schema([ FilamentCollapse::make([ // Add fields here. Ideally, these fields should be related. // For now, it's only been tested with TextInput fields, and fields that inherit from it. TextInput::make('first_name') ->label('First Name'), // Labels are transformed into placeholders. TextInput::make('last_name') ->label('Last Name'), ]) ->label('Collapse Group'), // This field is a regular field, so it also supports base filament properties. ]); } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.