From af509dba2aaeb2efe24df7ada2c59f248074f33f Mon Sep 17 00:00:00 2001 From: Rey Jhon B Date: Fri, 9 Oct 2020 09:52:11 +0800 Subject: [PATCH 1/2] update gitignore: add node_modules --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2362f2e..9393dc9 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ Cache/ Logs/ vendor/ Simply/ -.idea/ \ No newline at end of file +.idea/ +node_modules/ \ No newline at end of file From 3dba9715551f307e83cc3eb63504c24b5d0fd79f Mon Sep 17 00:00:00 2001 From: Rey Jhon B Date: Fri, 9 Oct 2020 09:56:36 +0800 Subject: [PATCH 2/2] update unique validator --- app/Helper/Validation/Validator.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/app/Helper/Validation/Validator.php b/app/Helper/Validation/Validator.php index 40f055c..7f1d37f 100644 --- a/app/Helper/Validation/Validator.php +++ b/app/Helper/Validation/Validator.php @@ -1,26 +1,34 @@ "{field} is already Taken.", + "unique" => "{field} is already Taken.", )); - $call = Model::unique_checker($param,$field,$input[$field]); + $call = Model::unique_checker($param, $field, $input[$field]); if(!$call) { return; } return array( 'field' => $field, 'value' => $input[$field], - 'rule' => __FUNCTION__, + 'rule' => __FUNCTION__, 'param' => $param, ); }