From 16a6ee577da532a500315943218e50922a42c4b9 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 24 Jan 2020 04:59:08 +0100 Subject: [PATCH] Fix #3047 --- app/Http/Requests/Request.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/app/Http/Requests/Request.php b/app/Http/Requests/Request.php index cfd3239a68..805246e792 100644 --- a/app/Http/Requests/Request.php +++ b/app/Http/Requests/Request.php @@ -56,25 +56,6 @@ class Request extends FormRequest return null; } - /** - * Return a boolean value. - * - * @param string $field - * - * @return bool - */ - public function boolean(string $field): bool - { - if ('true' === (string)$this->input($field)) { - return true; - } - if ('false' === (string)$this->input($field)) { - return false; - } - - return 1 === (int)$this->input($field); - } - /** * @param string $value *