Ejemplo n.º 1
0
 public function index()
 {
     $studies = Study::all();
     return view('study.list', ['studies' => $studies]);
 }
Ejemplo n.º 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]);
 }