Support the ongoing development of Laravel.io →
posted 10 years ago
Eloquent
Last updated 2 years ago.
0

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?.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.