Laravel output:
Array ( [0] = stdClass Object ( [ID] = 5 ) [1] = stdClass Object ( [ID] = 4 ) )
$res = ActivityServer::query()->select('channel_id')->where(['id' => $id])->first()->attributesToArray();
I use get(), it returns an object, I use the attributesToArray() to change the object attribute to an array.
get()
attributesToArray()