persist($member); return redirect()->back(); } public function update(Member $member, CourseMember $course, UpdateRequest $request): RedirectResponse { $request->persist($member, $course); return redirect()->back(); } public function destroy(Member $member, CourseMember $course, DestroyRequest $request): RedirectResponse { $request->persist($member, $course); return redirect()->back(); } }