Setting up the Livewire component
First, generate a new Livewire component:InteractsWithSchemas trait, and implement the HasSchemas interface on your Livewire component class:
Adding the schema
Next, add a method to the Livewire component which accepts a$schema object, modifies it, and returns it:
filament/schemas also includes the following packages:filament/actionsfilament/support
HasActions interface and use the InteractsWithActions trait on your Livewire component class.If you are using any other Filament components in your schema, make sure to install and integrate the corresponding package as well.Security considerations for file uploads
TheInteractsWithSchemas trait exposes Livewire’s file upload RPC methods on every component that uses it — whether or not the component’s schema contains an upload field. If your Livewire component is reachable to users you do not want uploading arbitrary files, add the RestrictsFileUploadsToSchemaComponents trait. See Restricting Livewire file uploads to schema components for details.