ciorici
ciorici
FFilament
Created by ciorici on 10/26/2023 in #❓┊help
Reuse filament select multiple in custom component
I am trying to re-use some of Filaments components, and I am looking specifically to use the Select with multiple options. I saw the code below which seems to be working fine for simple selects, but I can't get it to work with multiple values. Can someone please help? I am not that good with Livewire and Laravel, still learning this through... Thanks! <x-filament::input.wrapper> <x-filament::input.select wire:model="records"> <option value="draft">Draft</option> <option value="reviewing">Reviewing</option> <option value="published">Published</option> </x-filament::input.select> </x-filament::input.wrapper>
6 replies
FFilament
Created by ciorici on 10/19/2023 in #❓┊help
Repeater deleteAction
I am trying to do some changes to some other fields when deleting one of the repeater items. In v2 there was an option to do this using ->registerListeners([ 'repeater::deleteItem' => [ function (Forms\Components\Component $component, string $statePath): void {} ]); but it does not seem to work. Is there any way to achieve this in Filament v3? Also, I am getting issues with the repeater when adding/deleting them constantly, at some moment it does seem to stop working.
2 replies
FFilament
Created by ciorici on 10/17/2023 in #❓┊help
Validation for tabs
The validation for required fields does not seem to work when using tabs. To be more specific, it does not seem to work if another tab is active. For Filament V2 there was an error + the tabs were switching automatically to that field, is there something required for this to have the same behavior in V3?
1 replies
FFilament
Created by ciorici on 10/16/2023 in #❓┊help
getTableActionsPosition not available in v3
I am migrating to v3 and it seems that using getTableActionsPosition function for a table widget does not seem to work any more. Is there a new way or chanding the actions inside the tables for widgets?
1 replies
FFilament
Created by ciorici on 8/25/2023 in #❓┊help
Filters to reload page without Livewire
Is there a way to reload the page with filters without Livewire? Basically reload the page with the new results. When loading 100+ results the page can take a long time to load the results and it's mainly a frontend issue, the requests seem to be loading fast. Any ideas how to achieve that?
4 replies
FFilament
Created by ciorici on 7/28/2023 in #❓┊help
Save table columns for each user
Is there a way to save the columns shown in the table builder for each user. I am using quite a large table and sometimes some users don't need all the columns. What would be a good way to save the columns individually for each user?
11 replies
FFilament
Created by ciorici on 7/17/2023 in #❓┊help
Filter query based on column value
I have a question, hopefully someone can help. I need to create a query in eloquent to get the orders based on the following information: - they are located in the orders table - the table structure is like this id, client_payment_from, delivery_date, customs_date, client_papers_date, transporter_papers_date, client_payment_in. In the client_payment_from column you will find the name of the column where you need to get the date value from and in the client_payment_in column the number of days that are allowed to pass. I need to do a query where you can find the orders where that date is passed by the max amount of days (in the client_payment_in column)
18 replies
FFilament
Created by ciorici on 5/26/2023 in #❓┊help
Table totals bottom of table
Is there a way to calculate the totals (order prices, profits) at the bottom of the table? Can't seem to find any details about this.
4 replies
FFilament
Created by ciorici on 5/22/2023 in #❓┊help
Copyable value with formatStateUsing function
I am trying to add a copyable option to a table column, but the value for it is changed using formatStateUsing function. Is there a way to change the value of that is being copied?
9 replies
FFilament
Created by ciorici on 5/12/2023 in #❓┊help
Cache/speed up large select options array
I have a select where the user searches through the database and chooses from a list of 144000 cities, and usually the query takes around 2 seconds or so for a Select field query. Is there a way/any recommendations on how I could speed this up?
6 replies
FFilament
Created by ciorici on 5/12/2023 in #❓┊help
Table column layout ordering
Would there be an option to an option for each user to basically save their own column layout, so basically re-order, choose which ones should be shown (from available) and save these as default?
3 replies
FFilament
Created by ciorici on 5/5/2023 in #❓┊help
Form field value set but saved as "null" in database
I have a form (order) where I am saving the company_id, from a select with a relationship "->relationship('company', 'name')". For some reason on create the field is saved as null in the database even if it's set as required. I tried to check if the data is passed through in the mutateFormDataBeforeCreate function, everything is fine but it still goes empty in the database. The interesting thing is that it is being saved normally after I edit the record, select it again and then save. Any ideas what this could be?
25 replies
FFilament
Created by ciorici on 4/26/2023 in #❓┊help
how to change the admin logo url
sorry if this has been maybe answered already, but I was not able to find it. I would like the logo URL in the Filament Admin to be linking to the dashboard page, but I can't seem to find any information on how to do that.
5 replies