Corcel\UserMetaCollection::save PHP Method

save() public method

public save ( $userId )
    public function save($userId)
    {
        $this->each(function ($item) use($userId) {
            if (in_array($item->meta_key, $this->changedKeys)) {
                $item->user_id = $userId;
                $item->save();
            }
        });
    }
UserMetaCollection