Tetracyclic
Custom page with a wizard form
The
$model
property is only (I think) used on Resources. If you're creating a custom page that interacts with a single record, you need a way to bind it to a specific record, so you need to set ->model()
on the form itself7 replies
Custom page with a wizard form
In order to access a relationship, you need to set the related
$model
on the form: https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component#setting-a-form-model7 replies
Export pdf with custom layout
You could try creating a custom exporter and export job and passing them to the
ExportAction
: https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export#customizing-the-export-job18 replies
Export pdf with custom layout
The built-in Export action splits the export into multiple jobs, each handling a maximum number of records (chunk), to reduce overall memory usage. However this would be tricky to do with a PDF, where you need all the data at once when you generate it.
18 replies
Export pdf with custom layout
You don't have to dispatch a job, you could handle it within the request, but depending on the amount of data and the complexity of the PDF, it could take a while to complete, so dispatching a job makes sense.
18 replies
Export pdf with custom layout
You could use the code for the main Export action as a starting point for handling the (though you probably won't need a lot of it): https://github.com/filamentphp/filament/tree/3.x/packages/actions/src/Exports
18 replies
Exporting a sorted sum column with ExportAction
It gets added when exporting each column here: https://github.com/filamentphp/filament/blob/d00919cbac22c9b8648b114815ab635aaac6d509/packages/actions/src/Exports/ExportColumn.php#L117
13 replies