I am new to laravel and I have been trying to store all records of table \'student\' to a variable and then pass that variable to a view so that I can display them.
public function showstudents() { $students = DB::table('student')->get(); return (View::make("user/regprofile", compact('student'))); }