Cosme fulanito
Cosme fulanito
FFilament
Created by Cosme fulanito on 4/24/2024 in #❓┊help
Does RepeatableEntry support arrays or only models?
I am currently working on a project and trying to use RepeatableEntry to manage dynamic entries for product totals. I've structured my RepeatableEntry as follows:
return RepeatableEntry::make('productTotals')
->label(__('Product Totals'))
->columns(3)
->state(function ($record) {
// Demo array to test
return [
[
'product' => 'Product 1',
'quantity' => 1,
'price' => 100,
'total' => 100,
],
[
'product' => 'Product 2',
'quantity' => 2,
'price' => 200,
'total' => 400,
],
];
})
->schema([
TextEntry::make('product')
]);
return RepeatableEntry::make('productTotals')
->label(__('Product Totals'))
->columns(3)
->state(function ($record) {
// Demo array to test
return [
[
'product' => 'Product 1',
'quantity' => 1,
'price' => 100,
'total' => 100,
],
[
'product' => 'Product 2',
'quantity' => 2,
'price' => 200,
'total' => 400,
],
];
})
->schema([
TextEntry::make('product')
]);
However, it appears that the RepeatableEntry is not displaying or functioning as expected. Does RepeatableEntry only work with Eloquent models, or can it also handle arrays like the one I am trying to use? Has anyone encountered this issue, and what solutions or workarounds might you suggest?
4 replies
FFilament
Created by Cosme fulanito on 2/21/2024 in #❓┊help
Navigation on hover in Actions
hi, anyway to add navigate on hover to actions that are url?
8 replies
FFilament
Created by Cosme fulanito on 2/7/2024 in #❓┊help
Modal full height issue after update 3.2.25
No description
12 replies
FFilament
Created by Cosme fulanito on 8/3/2023 in #❓┊help
Exception with Filament 3: Property type not supported in Livewire
Hello everyone, I hope you all are doing well. I'm currently facing an issue with Filament after an upgrade and I hope to get some help or pointers on how to solve it. I've been using the package Spatie Laravel Model States to cast attributes to a state class without any issues in Filament v2. However, after upgrading, any attribute that is cast to a class causes the following exception:
Exception
PHP 8.2.8
10.17.1
Property type not supported in Livewire for property: ["in_progress"]
Exception
PHP 8.2.8
10.17.1
Property type not supported in Livewire for property: ["in_progress"]
This didn't occur with the previous version of Filament and has been causing some roadblocks in my development process. Does anyone have an idea on what could be causing this and how to fix it? Any guidance or suggestions would be much appreciated. Thank you in advance.
10 replies