fede8100
fede8100
FFilament
Created by fede8100 on 5/30/2024 in #❓┊help
How to get $data in Tables\Actions\CreateAction::make()?
I used to get the $data in the form using ->before(function (RelationManager $livewire, array $data, Tables\Actions\CreateAction $action) { if ($data['total'] > 0) { But it doesn't work now, probably since some upgrade. This is a Table inside a RelationManager. Any help?
5 replies
FFilament
Created by fede8100 on 10/18/2023 in #❓┊help
How to refresh the whole form, with relationmanagers, after an action?
refreshFormData refreshes just some fields, I want to refresh the whole page, like reload, but not loading the CSS etc, just the Livewire refresh for the shole page. Is it possible?
7 replies
FFilament
Created by fede8100 on 8/4/2023 in #❓┊help
How to extend ViewResource but show a custom view?
The view is protected, so it keeps loading the original view from ViewResource. I need to access all the functions in ViewResource, Permissions, Page Actions, etc. But I want to show just a custom Livewire component inside. I have also tried extending Page, but including some functions from ViewResource. But the Page Actions don't work.
2 replies
FFilament
Created by fede8100 on 8/4/2023 in #❓┊help
How to access the record on a custom page?
I have tried with $record, $model, etc, nothing works
18 replies
FFilament
Created by fede8100 on 7/31/2023 in #❓┊help
How to Trim TextInput field before data is saved?
Is there any way? I can make a Macro, but I need to include afterStateUpdated inside the Macro, will it give a problem with some field using afterStateUpdated too?
6 replies
FFilament
Created by fede8100 on 4/27/2023 in #❓┊help
I have a morphedByMany multiplies relations
I have a morphedByMany relationship and this code Forms\Components\Select::make('products') ->multiple() ->relationship('products', 'name') ->getSearchResultsUsing(fn (string $search) => Product::where('name', 'like', "%{$search}%") ->orWhere('sku', 'like', "%{$search}%") ->limit(10)->pluck('name', 'id')) ->getOptionLabelUsing(fn ($value): ?string => Product::find($value)?->name), It is multiplying the entries in the table, it should sync instead of save?
4 replies
FFilament
Created by fede8100 on 4/6/2023 in #❓┊help
I think lte validator is not working
5 replies
FFilament
Created by fede8100 on 3/3/2023 in #❓┊help
$get a field on schema stopped working
Forms\Components\Fieldset::make('Fields')->schema( function (\Closure $get) { ray($get('class')); Used to work, and it doesn't work anymore ray($get('class')); returns null now do you know why?
15 replies