adding all get all channel functions in channel repo
This commit is contained in:
parent
b28f48cf95
commit
63bac873c3
|
|
@ -100,4 +100,16 @@ class ChannelRepository extends Repository
|
|||
$channel->save();
|
||||
}
|
||||
}
|
||||
|
||||
public function getAllChannel() {
|
||||
$data = $this->model->get()->toArray();
|
||||
|
||||
$channel = [];
|
||||
|
||||
foreach($data as $key => $value) {
|
||||
$channel[$value['id']] = $value['code'];
|
||||
}
|
||||
|
||||
return $channel;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue