ids = $ids; } public function GetTaskRecords() { return Task::with('device', 'tag', 'category')->whereIn('id', $this->ids)->get(); } }