Ravi Gotecha
Ravi Gotecha
FFilament
Created by Ravi Gotecha on 1/2/2024 in #❓┊help
Set images other modal after states update
Hello everyone, I need to set image other modal using after states update. Select::make('demo_profile') ->label('Name') ->options(DemoTemplate::query()->pluck('name', 'id')) ->disabledOn('edit') //->hidden('edit') ->afterStateUpdated(VcardFormHelper::handleDemoformStateUpdate()) ->reactive(), public static function handleDemoformStateUpdate(): Closure { return function (Closure $set, Closure $get, $state) {


$demosprofile = DemoTemplate::where('id', $get('demo_profile'))->first(); $set('banners',$demosprofile->banners); }
1 replies