protected function migrate(Component $component)
    {
        $path = str_replace(base_path(), '', (new Migrator($component))->getPath());
        $this->call('migrate', [
            '--path'     => $path,
            '--database' => $this->option('database'),
            '--pretend'  => $this->option('pretend'),
            '--force'    => $this->option('force'),
        ]);

        if ($this->option('seed')) {
            $this->call('component:seed', ['component' => $component->getName()]);
        }
    }