aboutsummaryrefslogtreecommitdiff
path: root/app/Http/Controllers/GuestbookController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Http/Controllers/GuestbookController.php')
-rw-r--r--app/Http/Controllers/GuestbookController.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/app/Http/Controllers/GuestbookController.php b/app/Http/Controllers/GuestbookController.php
index df726ef..3fd179b 100644
--- a/app/Http/Controllers/GuestbookController.php
+++ b/app/Http/Controllers/GuestbookController.php
@@ -27,21 +27,7 @@ class GuestbookController extends Controller {
* @throws ValidationException
*/
public function addEntry(Request $request): RedirectResponse {
- $this->validate($request, [
- 'name' => 'required',
- 'message' => 'required'
- ]);
-
-
GuestbookEntry::insertGuestbookEntry($request);
return back()->with('success', 'Entry submitted successfully!');
}
-
- public function banIP(string $addr) {
- // TODO: Add banning system
- // $matching_bans = DB::select('SELECT reason FROM guestbook__bans WHERE ip_address = ?', array($request->ip()));
- // if (!empty($matching_bans)) {
- // return view('errors.guestbook-ipban')->with('reason', $matching_bans[0]->reason);
- // }
- }
}