Umar Farooq
Umar Farooq
FFilament
Created by Umar Farooq on 10/15/2024 in #❓┊help
Repeater hide the input on second item
How to hide the Repeater Radio button the second item of repeater?
Forms\Components\Repeater::make('eventDates')
->label('Event dates')
->required()
->relationship('eventDates')
->columnSpanFull()
->schema([
Forms\Components\Radio::make('recurrent')
->label('Is this event recurring?')
->boolean()
->live()
->required(),

Forms\Components\DateTimePicker::make('recurrent_startdate')
->label('Calendar Starts On')
->required()
->visible(fn(Forms\Get $get) => $get('recurrent')),
]),
Forms\Components\Repeater::make('eventDates')
->label('Event dates')
->required()
->relationship('eventDates')
->columnSpanFull()
->schema([
Forms\Components\Radio::make('recurrent')
->label('Is this event recurring?')
->boolean()
->live()
->required(),

Forms\Components\DateTimePicker::make('recurrent_startdate')
->label('Calendar Starts On')
->required()
->visible(fn(Forms\Get $get) => $get('recurrent')),
]),
2 replies
FFilament
Created by Umar Farooq on 7/29/2024 in #❓┊help
Add a loader when the pagination changes inside the table
How to add a loader when the pagination changes inside the table?
5 replies
FFilament
Created by Umar Farooq on 7/22/2024 in #❓┊help
Select component Allow Multiple select
How can I add functionality to a select component so that if the user pastes multiple values, such as "user-1, user-2", both "user-1" and "user-2" get selected?
5 replies
FFilament
Created by Umar Farooq on 6/20/2024 in #❓┊help
Repeater Deletable
How to disable first and last item of repeater?
3 replies
FFilament
Created by Umar Farooq on 6/11/2024 in #❓┊help
Repeater not working on custom page
I have repeater inside the custom page
$formComponents[] = Forms\Components\Repeater::make('request-' . $postOrderRequest->id)
->schema([
Forms\Components\FileUpload::make('image')
->label(__('request-builder.post_request.message'))
->disk('s3')
->image()
->avatar()
->required(),

Forms\Components\Textarea::make('response')
->label(__('request-builder.post_request.message'))
->rows(8)
->required(),
])
->minItems(1)
->columns(4)
->maxItems(3);
$formComponents[] = Forms\Components\Repeater::make('request-' . $postOrderRequest->id)
->schema([
Forms\Components\FileUpload::make('image')
->label(__('request-builder.post_request.message'))
->disk('s3')
->image()
->avatar()
->required(),

Forms\Components\Textarea::make('response')
->label(__('request-builder.post_request.message'))
->rows(8)
->required(),
])
->minItems(1)
->columns(4)
->maxItems(3);
{{ $this->form }}
{{ $this->form }}
13 replies
FFilament
Created by Umar Farooq on 5/14/2024 in #❓┊help
Table SelectColumn With Multiple
Add the functionality to Table SelectColumn to select multiple options
1 replies
FFilament
Created by Umar Farooq on 5/8/2024 in #❓┊help
Export PostgreSQL Error
I'm getting an error when I try to export.
2 replies
FFilament
Created by Umar Farooq on 4/16/2024 in #❓┊help
Render JSON payload inside table
I have a json column inside the table and want to render the alll the column name and value inside the table. e.g payload column name and data
{"id":15078554239285,"current_quantity":1,"fulfillable_quantity":1,"fulfillment_service":"manual","fulfillment_status":null,"gift_card":false,"grams":227,"name":"Shorts & Short Sleeve Pajamas - Both Shorts & Shirt \/ Medium \/ 1 Pet","price":"64.00","price_set":{"shop_money":{"amount":"64.00","currency_code":"USD"}, ... }
{"id":15078554239285,"current_quantity":1,"fulfillable_quantity":1,"fulfillment_service":"manual","fulfillment_status":null,"gift_card":false,"grams":227,"name":"Shorts & Short Sleeve Pajamas - Both Shorts & Shirt \/ Medium \/ 1 Pet","price":"64.00","price_set":{"shop_money":{"amount":"64.00","currency_code":"USD"}, ... }
and table like
Column Name Value
id 15078554239285
current_quantity 1
fulfillable_quantity 1
...
Column Name Value
id 15078554239285
current_quantity 1
fulfillable_quantity 1
...
1 replies
FFilament
Created by Umar Farooq on 4/4/2024 in #❓┊help
Adding a form to a Livewire component
I added custom livewire component https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component gettitng error Livewire page component layout view not found: [components.layouts.app] Here is route inside web.php i Route::get('/admin/suppliers/{record}/line-items', ListSupplierLineItem::class);
42 replies
FFilament
Created by Umar Farooq on 3/12/2024 in #❓┊help
Dynamic Page
Hey, I want to have a dynamic page where record of the user base on the route. like /user/2 only show the post of user where id is 2. I added the navigation group item on panel provider
$posts = Post::all()->pluck('name', 'id');

$postsNavItem = [];

foreach ($posts as $id => $post) {
$postsNavItem[] = NavigationItem::make($post)
->group('Posts')
->sort($id);
}

return $panel
...
->navigationItems($postsNavItem);
$posts = Post::all()->pluck('name', 'id');

$postsNavItem = [];

foreach ($posts as $id => $post) {
$postsNavItem[] = NavigationItem::make($post)
->group('Posts')
->sort($id);
}

return $panel
...
->navigationItems($postsNavItem);
1 replies
FFilament
Created by Umar Farooq on 1/27/2024 in #❓┊help
export file permission
The export file is empty without manually assigning permission every time. I think that because of the random directory created inside the app/public/filament_exports
1 replies
FFilament
Created by Umar Farooq on 1/21/2024 in #❓┊help
Filament Export Action
No description
2 replies
FFilament
Created by Umar Farooq on 1/19/2024 in #❓┊help
Filament Exporter
When I run the command php artisan queue:work. the always keep running 2024-01-19 13:39:03 Illuminate\Bus\ChainedBatch .......................................................................................... RUNNING
ExportBulkAction::make()
->label('Export')
->icon('heroicon-o-arrow-down-tray')
->color('primary')
->modalHidden(true)
->chunkSize(10000)
->exporter(UserExporter::class),
ExportBulkAction::make()
->label('Export')
->icon('heroicon-o-arrow-down-tray')
->color('primary')
->modalHidden(true)
->chunkSize(10000)
->exporter(UserExporter::class),
18 replies
FFilament
Created by Umar Farooq on 9/1/2023 in #❓┊help
Filament Excel Export
How to apply filter on the ExportAction ? . I've Filament resource where user can export the record in the table and also can filter out the record but I use ExportAction it's dowloading all the records instead of the filters record. I also created the issue on the Github. https://github.com/pxlrbt/filament-excel/issues/111
1 replies
FFilament
Created by Umar Farooq on 8/4/2023 in #❓┊help
RelationManager Actions
actions are not working in the relation manger actions([ Tables\Actions\DeleteAction::make(), Tables\Actions\ForceDeleteAction::make(), Tables\Actions\RestoreAction::make(), ])
3 replies