예제 #1
0
 public function index()
 {
     $studies = Study::all();
     return view('study.list', ['studies' => $studies]);
 }
예제 #2
0
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     $pages = Page::all();
     $studies = Study::all();
     return view('courses.add', ['pages' => $pages, 'studies' => $studies]);
 }