public function registerCommands()
    {
        $this->addCommands([
            new Model(),
            new Controller(),
            new Routing(),
            new Config(),
            new Migration(),
        ]);

        $consoles = config()->get('consoles', []);
        $consoles = array_unique($consoles);

        foreach ($consoles as $console) {
            $this->add(new $console());
        }

        if (false !== ($files = glob(app()->getPath().'/src/Console/*.php', GLOB_NOSORT | GLOB_NOESCAPE))) {
            foreach ($files as $file) {
                $command = '\\Console\\'.pathinfo($file, PATHINFO_FILENAME);
                $this->add(new $command());
            }
        }
    }