I want to update a custom timestamp field and therefore wrote this function
public function touchDelivery() {
$this->delivery = $this->freshTimestamp();
return $this->save();
}
public function pushSuccess($id) {
return Message::where('id', '=', $id)->touchDelivery();
}
But when executing Laravel complains:
Call to undefined method Illuminate\Database\Query\Builder::touchDelivery()