ids = $ids; } public function GetTagRecords() { return Tag::with('device')->whereIn('id', $this->ids)->get(); } }