Create notification in select modal

Good afternoon, a question, I am allowing the user to create a record in the bank that automatically appears as an option in my select, the code works perfectly, but it does not display a notification that it was created successfully. How can I launch this notification when saving the modal? The code that creates the modal that saves my record is in the createOptionForm() function, but it does not have a saved() method Forms\Components\Select::make('modelo_id') ->relationship( name: 'modelo', titleAttribute: 'nome', modifyQueryUsing: fn (Builder $query, Get $get) => $query->where('marca_id', $get('marca_id')), ) ->required() ->createOptionForm([ Forms\Components\TextInput::make('nome') ->required() ->maxLength(255), Forms\Components\Hidden::make('marca_id') ->afterStateHydrated(function (Component $component, Livewire $livewire) { $component->state($livewire->data['marca_id']); }), ]),
0 Replies
No replies yetBe the first to reply to this messageJoin