public function getByDriver(string $driver): Collection
    {
        return $this->channels->filter(function (array $channel) use ($driver) {
            return $channel['driver'] === $driver;
        });
    }
public function getByDriver(string $driver): Collection
    {
        return $this->channels->filter(function (array $channel) use ($driver) {
            return $channel['driver'] === $driver;
        });
    }
public function getByDriver ( string $ driver ) : Collection { return $ this -> channels -> filter ( function ( array $ channel ) use ( $ driver ) { return $ channel [ 'driver' ] === $ driver ; } ) ; }
Get channels by driver.

@param string $driver

@return Collection
Get channels by driver .