Пример #1
0
 /**
  * Display a listing of the Course.
  *
  * @return Response
  */
 public function index()
 {
     $courseList = Course::all();
     $semesterList = $this->semesterList;
     return view('admin.course.list', compact('courseList', 'semesterList'));
 }
Пример #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $courses = Course::all();
     return view('course.index', ['courses' => $courses]);
 }
Пример #3
0
 public function compose(View $view)
 {
     $course = Course::all()->first();
     $view->with('course', $course);
 }