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.
Try with this code:
return View::make('user/regprofile', array ( 'students' => $students ) );
Or if you want to pass more variables into view:
return View::make('user/regprofile', array ( 'students' => $students, 'variable_1' => $variable_1, 'variable_2' => $variable_2 ) );