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); }
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server