data from database to fusioncharts in laravel
0
I want to display the data from the database to myFusionCharts in laravel but somehow I got stuck. I can't find any answers from the documentations since they use predefined dataset in their sample. Any help would be much appreciated. This is my controller: public function index() { $subj = DB::Table('tbl_subjects') ->select('subject') ->get(); // ->toArray() foreach ( $subj as $s){ // $c = $s->subject; $c = DB::table('tbl_ordinances') ->where('subject', 'like', '%'.$s->subject.'%') ->get() ->count(); } // dd($subj,$c); return view('statistics',compact('subj','c'...