Karlomikus\Theme\Commands\ThemeListCommand::handle PHP Метод

handle() публичный Метод

Execute the console command.
public handle ( ) : mixed
Результат mixed
    public function handle()
    {
        $themes = $this->laravel[ThemeInterface::class]->all();
        $headers = ['Name', 'Author', 'Namespace'];
        $output = [];
        foreach ($themes as $theme) {
            $output[] = ['Name' => $theme->getName(), 'Author' => $theme->getAuthor(), 'Namespace' => $theme->getNamespace()];
        }
        $this->table($headers, $output);
    }
ThemeListCommand