with('entries', $entries) ->with('parser', $parser); } /** * Creates a new guestbook entry * * @param Request $request * @return RedirectResponse * @throws ValidationException */ public function addEntry(Request $request): RedirectResponse { GuestbookEntry::insertGuestbookEntry($request); return back()->with('success', 'Entry submitted successfully!'); } }