From 069cf70f5be260e6fcf44d80a9befca01e4c5ed6 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Thu, 11 Jul 2024 22:23:46 +0100 Subject: Remove admin pages --- app/Http/Controllers/AdminGuestbookController.php | 34 ----------------------- 1 file changed, 34 deletions(-) delete mode 100644 app/Http/Controllers/AdminGuestbookController.php (limited to 'app/Http/Controllers/AdminGuestbookController.php') diff --git a/app/Http/Controllers/AdminGuestbookController.php b/app/Http/Controllers/AdminGuestbookController.php deleted file mode 100644 index 5ebf451..0000000 --- a/app/Http/Controllers/AdminGuestbookController.php +++ /dev/null @@ -1,34 +0,0 @@ -distinct()->count('ip'); - return $uniqueIpsCount; - } - - function getGuestbookEntriesCount(): int { - $entryCount = DB::table('guestbook__entries')->count(); - return $entryCount; - } - public function show() : View { - $guestbook_unique_addr = $this->getGuestbookUniqueAddr(); - $guestbook_entry_count = $this->getGuestbookEntriesCount(); - $entries = GuestbookEntry::selectEntries(); - $parser = Parser::create(); - - return view('admin.guestbook', [ - 'guestbook_unique_addr' => $guestbook_unique_addr, - 'guestbook_entry_count' => $guestbook_entry_count, - 'entries' => $entries, - 'parser' => $parser, - ]); - } -} -- cgit v1.2.3-54-g00ecf