From fe0765795aae52df0edf064ce4add55d6edb0ed9 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Wed, 19 Jul 2023 01:58:32 +0100 Subject: Update table names to new format --- routes/web.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routes/web.php') diff --git a/routes/web.php b/routes/web.php index 7284bc3..36e9d70 100644 --- a/routes/web.php +++ b/routes/web.php @@ -60,7 +60,7 @@ Route::get('/admin/guestbook/delete', function () { } $id = request()->input('id'); - $entry = DB::table('guestbook_entries')->find($id); + $entry = DB::table('guestbook__entries')->find($id); if ($entry) { // Render a confirmation view @@ -78,7 +78,7 @@ Route::post('/admin/guestbook/delete', function () { } $id = request()->input('id'); - DB::table('guestbook_entries')->where('id', $id)->delete(); + DB::table('guestbook__entries')->where('id', $id)->delete(); return back()->with('success', 'Entry deleted successfully!'); }); -- cgit v1.2.3-54-g00ecf