/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $title = 'List Students'; // get students $students = \ATC\Student::orderBy('initials', 'ASC')->get(); return view('student.index')->withTitle($title)->withStudents($students); }