src/Commands/BaseCommand.php
protected function trump($event, $label)
    {
        $this->line('');

        $message = 'This will generate ' . $label . ' for all of the packages that'
            . ' subscribe to the `' . $event . '` event.';
        $this->comment($message);
        $this->line('');

        if ($this->confirm('Proceed with rebuilding ' . $label . '? [Yes|no]')) {
            $this->line('');

            // Trigger generation
            $this->info('Generating ' . $label . '...');
            $counts = Event::fire($event);
            $total = array_sum($counts);

            // Done!
            $this->line('');
            $this->info('Process completed!');
            if ($total) {
                $this->info($total . ' ' . $label . ' saved.');
            }
            $this->line('');
        }
    }
protected function trump($event, $label)
    {
        $this->line('');

        $message = 'This will generate ' . $label . ' for all of the packages that'
            . ' subscribe to the `' . $event . '` event.';
        $this->comment($message);
        $this->line('');

        if ($this->confirm('Proceed with rebuilding ' . $label . '? [Yes|no]')) {
            $this->line('');

            // Trigger generation
            $this->info('Generating ' . $label . '...');
            $counts = Event::fire($event);
            $total = array_sum($counts);

            // Done!
            $this->line('');
            $this->info('Process completed!');
            if ($total) {
                $this->info($total . ' ' . $label . ' saved.');
            }
            $this->line('');
        }
    }
Execute the console command.