mercredi 29 mars 2017

Retrive data from database in Laravel 5.0

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?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2nwts25
via IFTTT

Aucun commentaire:

Enregistrer un commentaire