diff options
author | Frankie B <git@diskfloppy.me> | 2023-07-19 01:58:32 +0100 |
---|---|---|
committer | Frankie B <git@diskfloppy.me> | 2023-07-19 01:58:32 +0100 |
commit | fe0765795aae52df0edf064ce4add55d6edb0ed9 (patch) | |
tree | 7303aa0575cfd694430a7505cee976a8ce78d6f3 /routes/web.php | |
parent | fb045348cf4c72a2f523b6a0ce360b40d4d60ff3 (diff) |
Update table names to new format
Diffstat (limited to 'routes/web.php')
-rw-r--r-- | routes/web.php | 4 |
1 files changed, 2 insertions, 2 deletions
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!'); }); |