From a2506f92a18a3316db43c9670faf9721c6c0522e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Thu, 14 Jul 2022 18:39:41 +0300 Subject: [PATCH] removed redundant functions --- app/Abstracts/Http/FormRequest.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/app/Abstracts/Http/FormRequest.php b/app/Abstracts/Http/FormRequest.php index 1d5b6ac43..ce3d11016 100644 --- a/app/Abstracts/Http/FormRequest.php +++ b/app/Abstracts/Http/FormRequest.php @@ -3,7 +3,6 @@ namespace App\Abstracts\Http; use Illuminate\Foundation\Http\FormRequest as BaseFormRequest; -use Illuminate\Support\Arr; abstract class FormRequest extends BaseFormRequest { @@ -18,28 +17,4 @@ abstract class FormRequest extends BaseFormRequest 'company_id' => company_id(), ]); } - - /** - * Determine if the given offset exists. - * - * @param string $offset - * @return bool - */ - public function offsetExists($offset): bool - { - return Arr::has( - $this->route() ? $this->all() + $this->route()->parameters() : $this->all(), - $offset - ); - } - - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } }