removed redundant functions

This commit is contained in:
Denis Duliçi 2022-07-14 18:39:41 +03:00
parent 45d44f8b3f
commit a2506f92a1

View File

@ -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;
}
}