Update table names to new format

This commit is contained in:
Frankie B 2023-07-19 01:58:32 +01:00
commit ac1c84ea55
5 changed files with 16 additions and 8 deletions

View file

@ -2,7 +2,11 @@
@section('title', 'guestbook')
@section('content')
@php
$entries = DB::select('SELECT id, name, timestamp, message FROM guestbook_entries ORDER BY id DESC');
$entries = DB::select('
SELECT id, name, timestamp, message
FROM guestbook__entries
ORDER BY id DESC
');
@endphp
<h1>Entries <small>({{ count($entries) }} total)</small></h1>
@foreach ($entries as $entry)