/** * Show course details * * @return Response */ public function postStart(Course\Course $course) { $section = $course->sections()->first(); auth()->user()->courses()->attach($course); auth()->user()->sections()->attach($section); return redirect()->route('front.section', [$course, $section, $section->slug()]); }