public function getByType($type)
{
$models = array_filter($this->all(), function (Binding $binding) use($type) {
$is_valid = $binding->get('type') == $type && !$binding->get('failover') && !$binding->get('slave_of');
return $is_valid;
});
$bindings = array_values($models);
return $bindings;
}