mushtaqrahim
mushtaqrahim
FFilament
Created by mushtaqrahim on 2/25/2024 in #❓┊help
dependent Select filter not applying on table
Filter::make('filter') ->form([ Select::make('DistrictId') ->label('Select District') ->relationship('district', 'Name') ->reactive(), // the work if single ad will be selected automatically //->afterStateHydrated(fn(callable $set)=>$set('AdId',null)), Select::make('AdId') ->label('Select AD') ->options( function (callable $get) { Log::info($get('DistrictId')); $districtId = $get('DistrictId'); if ($districtId) { return Staff::query() ->where('district_id', $districtId) ->where('designation', 'Assistant Director') ->pluck('staff_name'); //->toArray(); } else { return []; } // Log::info($staffNames); //return $staffNames; } ) ->reactive() ->afterStateHydrated(fn(callable $set) => $set('AdId', null)), ]), i have done the code above the filter is dependent and working but not been apply on the table
2 replies
FFilament
Created by mushtaqrahim on 2/21/2024 in #❓┊help
dependent select filter not working
No description
5 replies
FFilament
Created by mushtaqrahim on 2/20/2024 in #❓┊help
dependent select filter
How to create dependant select filter Suppose in first filter select the district And second filter show the staff of selected district
4 replies
FFilament
Created by mushtaqrahim on 1/14/2024 in #❓┊help
creating new resource show error
After creating new resource show error missing required parameter for [Route: filament.admin.resource.applications.edit][URI:admin/application/{record{/edit]
4 replies
FFilament
Created by mushtaqrahim on 1/14/2024 in #❓┊help
change Stats label color and font
How to customize Stat widget text
4 replies
FFilament
Created by mushtaqrahim on 1/13/2024 in #❓┊help
how to combine multiple resources in one form
Suppose in one form one section for user creation while the other for post creation as both have their own table
5 replies
FFilament
Created by mushtaqrahim on 1/10/2024 in #❓┊help
filament 3 make state widget clickable
I want to implement filter on table resource based on widget click ->extra attributes not working for me
2 replies