$request->name, 'member' => $request->member ]); session()->flash('success', 'Terima kasih kerana sudi menghadirkan diri!'); return response()->json(['message' => 'RSVP form submitted successfully']); } public function saveSpeech(Request $request) { GuestBook::create([ 'name' => $request->name, 'speech' => $request->speech ]); session()->flash('success', 'Terima kasih atas ucapan anda!'); return response()->json(['message' => 'Speech form submitted successfully']); } }