Mansoor Khan
Mansoor Khan
FFilament
Created by bernhard on 8/10/2024 in #❓┊help
Hint Action - Copy value
Try this plugin. https://github.com/webbingbrasil/filament-copyactions If you need a one off simple solution, you may take some inspiration from this trait from above package https://github.com/webbingbrasil/filament-copyactions/blob/3.x/src%2FConcerns%2FHasCopyable.php
4 replies
FFilament
Created by Mansoor Khan on 5/7/2024 in #❓┊help
Open a Modal when field state changes
Wow, you are a genius. This worked like a charm. Thanks..
7 replies
FFilament
Created by Mansoor Khan on 5/7/2024 in #❓┊help
Open a Modal when field state changes
Thanks, let me try that.
7 replies
FFilament
Created by Mansoor Khan on 4/17/2024 in #❓┊help
Use FilterAction in a custom widget
I replaced the FilterAction with normal action Filament\Actions\Action the trigger button renders but it does not open modal. strange.
4 replies
FFilament
Created by Mansoor Khan on 4/17/2024 in #❓┊help
Use FilterAction in a custom widget
Seems like FilterAction can only be use inside page header actions using getHeaderActions Is there any way to use them anywhere?
4 replies
FFilament
Created by Zod on 4/10/2024 in #❓┊help
Custom modal inside repeater
Right... @Zod Share your code and lets what you have done. I think you are not setting up Field/Action correctly.
20 replies
FFilament
Created by Zod on 4/10/2024 in #❓┊help
Custom modal inside repeater
Possible share the stack trace.
20 replies
FFilament
Created by Zod on 4/10/2024 in #❓┊help
Custom modal inside repeater
I am on the phone, i assume the following should work. The action you pass can open up a modal and can have a form. https://filamentphp.com/docs/3.x/actions/modals#modal-forms And the ->action() method of your custom action can update the Repeater field.
->action(function(Repeater $repeater){
$repeater->state() // pass the data to repeater field.
})
->action(function(Repeater $repeater){
$repeater->state() // pass the data to repeater field.
})
Try it and see if it works.. Its all about trial and error.
20 replies
FFilament
Created by LeChatSoeur on 4/10/2024 in #❓┊help
Using Media Library Manager with Imagick and Filament 3 in Laravel
Found this while trying to look imagick support for php8.3 https://orkhan.dev/2024/02/07/using-imagick-with-php-83-on-docker/
6 replies
FFilament
Created by Zod on 4/10/2024 in #❓┊help
Custom modal inside repeater
You can replace requiresConfirmation method with any methods you want. And maybe also try to pass a custom action.
Repeater::make('members')
->schema([
// ...
])
->addAction(
fn (Action $action) => $action->requiresConfirmation(),
)
Repeater::make('members')
->schema([
// ...
])
->addAction(
fn (Action $action) => $action->requiresConfirmation(),
)
20 replies
FFilament
Created by Zod on 4/10/2024 in #❓┊help
Custom modal inside repeater
20 replies
FFilament
Created by LeChatSoeur on 4/10/2024 in #❓┊help
Using Media Library Manager with Imagick and Filament 3 in Laravel
Filament requires 8.1+, not exactly 8.1.2 i guess? So 8.1 should work. Do you run into any issues like composer install?
6 replies
FFilament
Created by Hugo on 4/3/2024 in #❓┊help
sticky table header
Ah just re-read and turns out you need sticky table header not the header actions. My bad.
6 replies
FFilament
Created by Hugo on 4/3/2024 in #❓┊help
sticky table header
6 replies
FFilament
Created by Senne on 4/2/2024 in #❓┊help
Fill FileUpload with generated images
I had a similar use case, here is how i did it https://github.com/mansoorkhan96/filament-unsplash-picker/blob/df4d6c3bd3fe720ec11e3cfe6686bd97a812d892/src/Actions/UnsplashPickerAction.php#L104 Maybe not the best way to do it, but it works good.
5 replies
FFilament
Created by MohamedSabil83 on 11/26/2023 in #❓┊help
How to reload select's options?
4 replies
FFilament
Created by Mansoor Khan on 3/13/2024 in #❓┊help
Upload image from URL
42 replies
FFilament
Created by Mansoor Khan on 3/21/2024 in #❓┊help
Possible Bug in Action ->disabled() and ->hidden()
My bad, the totalPages must be a public property. I had protected ?int $totalPages = null; and changing it to public ?int $totalPages = null; worked.
3 replies
FFilament
Created by Mansoor Khan on 3/13/2024 in #❓┊help
Upload image from URL
Yep. We had discussion, i will try to use a Job that would delete the unused images. https://discord.com/channels/883083792112300104/956270111176679516/1219248381046816858
42 replies
FFilament
Created by Mansoor Khan on 3/13/2024 in #❓┊help
Upload image from URL
42 replies