Iztok
Edit action in getHeaderActions
I used to be able to simply do this on Resource view page (or any other Resource page):
But after the update the edit link opens an empty modal, so I have to specify the url like this:
Is there any way to define the default edit action in the resource definition?
2 replies
Using Laravel-data casting
We are using spatie/laravel-data (https://spatie.be/docs/laravel-data) and if used as a eloquent cast on a model, the behavior that is normal in a array eloquent cast, is not available.
For example: TextColumn::make('data.name') would not work if "data" column was casted as a data object extending Spatie\LaravelData\Data.
Anyone solved this and what would be the best way to approach this?
1 replies
Form issues dynamically loadin static functions from a class that return an array of form components
I'm dynamically loading form compnents into schema(). The fields are displayed properly but are not operational (validation, default, saving - all not working).
When I load the static function from the class manually in code, everything is working as expected.
2 replies
Form polling
I have a background task with a queued job based on which a form element would be enabled/disabled. So until the job is done, the form element should be disabled.
How should I go about this without having togo too much outside of Filament forms (I say this because I have an idea ho would I do this with a custom Livewire component).
3 replies
How to alter the resource ('s edit form) if the resource is defined in a package/plugin?
I'm using a plugin that defines a filament resource. I need to extend the resource form by adding a field.
I've managed to alter the source model to add a new fillable entry, but now I need to add a new field to a form.
2 replies
SQL error on table bulk action when originally sorting by relationship count
Hello, when using sorting by relationship count:
Tables\Columns\TextColumn::make('people_count')->counts('people')->label('People')->sortable(),
and then executing a table BulkAction, the SQL that Filament executes to get the records to work with is the following (example of me selecting 3 companies from the table):
select * from
companies
where companies
.id
in (53, 80, 1, 12) order by people_count
desc
This query is not valid, as there is not column "people_count".3 replies
Error during upload - no errors in logs, works with smaller files (PHP and Nginx limits lifted)
I'm using Filament Forms FileUpload component and it's returning "Error during upload" for files above 10M. Problem is, that my log files are not showing anything. All limits (PHP and Nginx) are lifted.
3 replies