I have a table in my database called modules
so in my controller I write like this to retrieve datas from the table
$allModuleNames = DB::table('users')->get();
return view("BaseView.home")->with('$allModuleNames',$allModuleNames);
But for some weird reason I am getting syntax error, unexpected ';'
error on the query like. This must be silly I guess,not able to pass through this. Can someone help?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire