src/package/MetaHandler.php
public function update($key, $value)
    {
        try {
            $meta = $this->metaModel::where('key', $key)
                ->firstOrFail();
        } catch (\Exception $e) {
            $message = "Can't update meta (key: $key). ";
            $message .= "Meta doesn't exist";

            throw new \Exception($message);
        }

        $meta->value = $value;

        $meta->save();
    }
public function update($key, $value)
    {
        try {
            $meta = $this->metaModel::where('key', $key)
                ->firstOrFail();
        } catch (\Exception $e) {
            $message = "Can't update meta (key: $key). ";
            $message .= "Meta doesn't exist";

            throw new \Exception($message);
        }

        $meta->value = $value;

        $meta->save();
    }
Update meta at given key
for package realm.
If meta doesn't exists, exception will be thrown.

@param string $key
@param mixed  $value

@throws \Exception