If you inserted the data then you will already have the values that were inputted in variables would you not?
$myItem = new myItem;
$myItem.name = $name;
$myItem.address = $address;
$myItem.save();
$message_to_user = 'You just saved a new item named ' . $name . ' with an address of ' . $address;
No need to look into the DB to see what you just wrote, presumably you have what you wrote already otherwise how did you insert it?.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community