for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace FondBot\Toolbelt;
use Illuminate\Console\Command;
use FondBot\Channels\ChannelManager;
class ListChannels extends Command
{
protected $signature = 'fondbot:channel-list';
protected $description = 'List all registered channels';
public function handle(ChannelManager $manager): void
$rows = collect($manager->all())
->transform(function ($item, $name) {
return [$name, $item['driver'], route('fondbot.webhook', $name)];
})
->toArray();
$this->table(['Name', 'Driver', 'Webhook URL'], $rows);
}