Example #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $section = Section::findOrFail($id);
     return view('admin.section.show', compact('section'));
 }
Example #2
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Section::truncate();
     factory(Section::class, 500)->create();
 }
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     $series = Series::all();
     $sections = Section::all();
     return view('admin.lesson.create', compact('series', 'sections'));
 }