I added a column \'type\' like this. Here is my php function for the results.
public function datatable($id) { $data = Comment::select(‘comments.*’);