Open lautinghang opened 7 years ago
$form->passed(function() use ($form) { // Here can I get the entity row or id that just create in database?? ??????
$form->message("DataForm Submitted"); $form->link("/","Next Step"); });
You can get it this way. Just replace Model as $modal with your model name.
$form->passed(function() use ($form) { Model::created(function ($model){ $id=$model->id; ...... }); });
$form->passed(function() use ($form) { // Here can I get the entity row or id that just create in database?? ??????