protected function listAdminCommands()
    {
        $commands = collect(Artisan::all())->mapWithKeys(function ($command, $key) {
            if (Str::startsWith($key, 'admin:')) {
                return [$key => $command];
            }

            return [];
        })->toArray();

        $width = $this->getColumnWidth($commands);

        /** @var Command $command */
        foreach ($commands as $command) {
            $this->line(sprintf(" %-{$width}s %s", $command->getName(), $command->getDescription()));
        }
    }
protected function listAdminCommands()
    {
        $commands = collect(Artisan::all())->mapWithKeys(function ($command, $key) {
            if (Str::startsWith($key, 'admin:')) {
                return [$key => $command];
            }

            return [];
        })->toArray();

        $width = $this->getColumnWidth($commands);

        /** @var Command $command */
        foreach ($commands as $command) {
            $this->line(sprintf(" %-{$width}s %s", $command->getName(), $command->getDescription()));
        }
    }
protected function listAdminCommands ( ) { $ commands = collect ( Artisan :: all ( ) ) -> mapWithKeys ( function ( $ command , $ key ) { if ( Str :: startsWith ( $ key , 'admin:' ) ) { return [ $ key => $ command ] ; } return [ ] ; } ) -> toArray ( ) ; $ width = $ this -> getColumnWidth ( $ commands ) ; /** @var Command $command */ foreach ( $ commands as $ command ) { $ this -> line ( sprintf ( " %-{$width}s %s" , $ command -> getName ( ) , $ command -> getDescription ( ) ) ) ; } }
List all admin commands.

@return void
List all admin commands .