orderBy('id', 'asc')->get(); $data = $items->map->only('id', 'task_name', 'task_desc')->toArray(); $this->info('Results for Tasks List:'); $this->table($headers, $data); } }