Access recently created record on CreateAction
Ok, so I'm creating records in a modal action. I wan to run something after the fields are saved to the database, so I'm using something like this
Question. In other actions, you can use
->after(function () {
// Runs after the form fields are saved to the database.
})Question. In other actions, you can use
$this->record to access the current record. However, in this action, this object doesn't exists. How do I access the record that was just created?