namrata
namrata
FFilament
Created by namrata on 8/30/2024 in #❓┊help
Filters in page to change the widgets
Is there anyway to get the stats data to change as per the filters ?
I tried to use use BaseDashboard\Concerns\HasFiltersForm; but I did not get the filters in the top and. neither can access the filters in the widgets.
3 replies
FFilament
Created by namrata on 8/11/2024 in #❓┊help
Default value in Select input
I want to set one value as default, but the default() is not working. I have had this problem many times. Is there an issue with Select or am I doing something wrong ? php Select::make('date_format') ->options([ 'm/d/Y' => date('m/d/Y'), // Key is the format, value is the formatted date 'n/j/y' => date('n/j/y'), 'F j, Y' => date('F j, Y'), 'M j, Y' => date('M j, Y'), ]) ->default('m/d/Y') // Set the key as the default, which corresponds to the formatted date ->label('Date Format'), this is my code.
23 replies
FFilament
Created by namrata on 3/15/2024 in #❓┊help
Import Action
Nothing is being imported and the job fails when I do queue:work. I am not being able to dd in any functions in the importer as well to know where it went wrong. It is just continuously failing only !!!
20 replies
FFilament
Created by namrata on 12/19/2023 in #❓┊help
Filament page filter
I have this code where I have tried to pass date filter in my filament page. I made one similar type of report few months ago which works with this similar approad but this one is not working. Even when I pass the date filter the data is not changing in the view but the date is passing through. https://gist.github.com/Namrata199/b913be06177c0b1317d334180e3826ce
26 replies
FFilament
Created by namrata on 12/13/2023 in #❓┊help
Custom option label in multiple select
I have tried getOptionLabelUsing and getOptionLabelFromRecordUsing() both but my the options are not as I wanted. I have faced this when the select field is multiple. getOptionLabelFromRecordUsing() this works in single select option but not in multiple
30 replies
FFilament
Created by namrata on 11/30/2023 in #❓┊help
Multiple tableFilters in a Widget
I am creating a widget whoe vaue needs to change according to the filters used in the list page. But I am not being able to access the value in the widget. My getStats() function is being able to take the update filters value in case of the dates . The dates are updated as per the filter in the updateDateRange() function. https://gist.github.com/Namrata199/e3a988ba719de06ae624b065b6d7b7d0 these are my files. I can't figure out what I have done wrong.
2 replies
FFilament
Created by namrata on 9/15/2023 in #❓┊help
Split with label
Is there anyway to show label of the colum while using split
15 replies
FFilament
Created by namrata on 8/27/2023 in #❓┊help
Options Format
I want to format the way my options are shown , I used getOptionLabelFromRecordUsing() but it is only working in single select but it doesnot work with multiple(). What can I use in multiple select to format my options label ?
11 replies
FFilament
Created by namrata on 8/21/2023 in #❓┊help
Select filter throwing error when using relationship
\Filament\Tables\Filters\SelectFilter::make('user_id')
->relationship('user', 'name')
\Filament\Tables\Filters\SelectFilter::make('user_id')
->relationship('user', 'name')
This is my code and this gives error https://flareapp.io/share/w5BnMJv5#context-app-views . This is working in all my other resources except for this one. If I use any other filed like id or phone or anything else it takes a lot to load and crashes my whole application. But if I do
->relationship(
name: 'user',
titleAttribute: 'name',
modifyQueryUsing: fn(Builder $query) => $query->has('productSlug'),
)
->relationship(
name: 'user',
titleAttribute: 'name',
modifyQueryUsing: fn(Builder $query) => $query->has('productSlug'),
)
this works. Am I suppose to do it like this ? Also, when I use relationship in other resources as well, it gives all data not the relationships one.
7 replies
FFilament
Created by namrata on 8/16/2023 in #❓┊help
Searchable not working in column
searchable() is not working in my column search. It was woking in v2 but when I upgraded to v3 it stopped working.
6 replies
FFilament
Created by namrata on 7/27/2023 in #❓┊help
Passing date filter in other apis
I want to pass the value for the date filter to another api to form a report. I am not being able to apss teh vlaues in the api call. this is my full code. https://gist.github.com/Namrata199/63f6b30b7b73bef395551033e4edd75e
2 replies
FFilament
Created by namrata on 7/19/2023 in #❓┊help
Selecting all values in Select::multiple
I want to select all the optins in Select::muliple. How can I do that ?
4 replies
FFilament
Created by namrata on 7/18/2023 in #❓┊help
I want to date to my api from filters
I have called an internal api to show some data in my custom page. That api needs start date and end date parameters. How can I pass the parameters in the api ? The dates are selected in the fliter from datepicker
19 replies