public function update($component)
    {
        $component = $this->component->findOrFail($component);

        $packages = $component->getComposerAttr('require', []);

        chdir(base_path());

        foreach ($packages as $name => $version) {
            $package = "\"{$name}:{$version}\"";

            $this->run("composer require {$package}");
        }
    }