2 回答
TA贡献1851条经验 获得超4个赞
// First Create Model Parcel and FInd Your required row with id
// Below code use for selecting data from database.
$parcel = Parcel::query()->where('database column name', '=', $parcel_id)->first()
// If you want to store data in table use below code.
$parcel = new Parcel();
$percel->items = $item;
$percel->status = $newStatus;
$percel->save();
TA贡献1818条经验 获得超3个赞
// First Create Model Parcel and FInd Your required row with id
// Below code use for selecting data from database.
$parcel = Parcel::query()->where('database column name', '=', $parcel_id)->first()
// If you want to store data in table use below code.
$parcel = new Parcel();
$percel->items = $item;
$percel->status = $newStatus;
$percel->save();
- 2 回答
- 0 关注
- 104 浏览
添加回答
举报