Table::create(array(
"dataSource"=>$report->dataStore("data")->filter("column","=",10)
));
the above code gives an undefined index error.
Table::create(array(
"dataSource"=>$report->dataStore("data")->filter(function($row){
return $row["column"] == 10;
})
));
However on using this method it gives no data available in table.
What could possibly be the reason? Thank you.