Notification after successful edit via table action
I have a table with an edit action, triggering a modal that contains the edit form for the model. I have to process some of the data before submitting the Eloquent update request. My plan was to check that the request was successful, then trigger a notification as the modal is closed.
My code looks like this applicable part of my code looks like this:
* DATA PROCESSING OCCURS HERE *$updateAvailability = $availability->update($data);if ($updateAvailability) { $message = $this->availHeading . ' updated'; Notification::make() ->title($message) ->success() ->send();}
* DATA PROCESSING OCCURS HERE *$updateAvailability = $availability->update($data);if ($updateAvailability) { $message = $this->availHeading . ' updated'; Notification::make() ->title($message) ->success() ->send();}
I'm successfully triggering my data processing, but the modal closes immediately after the