Fixed: Show course messages
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2021-11-20 11:27:38 +01:00
parent ef20eee81d
commit 9d8c48817d
1 changed files with 3 additions and 3 deletions

View File

@ -17,20 +17,20 @@ class CourseController extends Controller
{ {
$request->persist($member); $request->persist($member);
return redirect()->back(); return redirect()->back()->success('Ausbildung erstellt');
} }
public function update(Member $member, CourseMember $course, UpdateRequest $request): RedirectResponse public function update(Member $member, CourseMember $course, UpdateRequest $request): RedirectResponse
{ {
$request->persist($member, $course); $request->persist($member, $course);
return redirect()->back(); return redirect()->back()->success('Ausbildung aktualisiert');
} }
public function destroy(Member $member, CourseMember $course, DestroyRequest $request): RedirectResponse public function destroy(Member $member, CourseMember $course, DestroyRequest $request): RedirectResponse
{ {
$request->persist($member, $course); $request->persist($member, $course);
return redirect()->back(); return redirect()->back()->success('Ausbildung gelöscht');
} }
} }