From 9345dbe820d2f611198118e95fe1147b5cbbc88b Mon Sep 17 00:00:00 2001 From: Leon Bogaert Date: Fri, 12 Jan 2018 16:46:48 +0100 Subject: [PATCH] Added methods for retrieving part of the input --- src/Extension/Laravel/Input.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Extension/Laravel/Input.php b/src/Extension/Laravel/Input.php index 3585ff0f..df0f603a 100644 --- a/src/Extension/Laravel/Input.php +++ b/src/Extension/Laravel/Input.php @@ -52,6 +52,8 @@ public function getFunctions() new Twig_SimpleFunction('input_get', [$this->request, 'input']), new Twig_SimpleFunction('input_old', [$this->request, 'old']), new Twig_SimpleFunction('input_has', [$this->request, 'has']), + new Twig_SimpleFunction('input_only', [$this->request, 'only']), + new Twig_SimpleFunction('input_except', [$this->request, 'except']), new Twig_SimpleFunction('old', [$this->request, 'old']), ]; }