I am using form_validation library in Codeigniter, I am facing an issue while using set_value() function. It not sets the value when an error occure in form validation. Here is my form ==> <div …
Tag: validation
PHP verify Paypal webhook signature
I’m having trouble trying to verify paypal webhook signatures with PHP. Using the new V2 of paypals APIs I am receiving the paypal webhook on my page. However I can not seem to successfully validate the signature. From the link HERE I got some sample webhook validation PHP code from paypal. I can not ge…
How to validate and insert data of multiple checkboxes in register.blade.php laravel?
I added 2 checkbox inputs to the register.blade.php file. I want one of them to be required, i.e. the user must select one or the other, otherwise I’d like to display some kind of error message like “…
How to validate at least one checkbox is checked in a loop in Laravel form?
I have a collection of checkboxes in my application. What I want to do is validate whether at least one is checked and enable a submit button. Basically a front end validation. According to the …
Why is my validator is not validating in Laravel?
Why is my validator is not validating the input-email field, it accepts anything! This is my controller to update the database. The name in form is correct Edit: This is my entire code, I post here my code with just email but one guy said that is working, so why this is not working with my entire code of upda…
Laravel validation with required parameter without using array
Here my code : $validated = request()->validate([ ‘q’ => ‘required|string’, ]); I want the same without using an array. I tried this : $validated = request()->validate(‘q’, ‘…
Base table or view not found in laravel 6 when using validator
I belong to the reader gang and this happens to be my first question on SO. Pls, pardon me for mistake I was trying to validate request in register function. Here is the code. public function …
Laravel, Handling validation errors in the Controller
So i’m working on validating a form’s inputs using the following code: So basically, there are two fields in the form, a title and a body and they have the above rules. Now if the validation fails I want to catch the error directly in the controller and before being redirected to the view so that …
Laravel validate regex not allow kanji char
I want to validate a form input which not allow input kanji char using Laravel validate rule. How to do it? This is what I did: public function validationRules() { return [ ‘name’ => ‘…
I am getting this error. Method IlluminateValidationValidator::validateReqiured does not exist
I am getting this error for validation of form. Method IlluminateValidationValidator::validateReqiured does not exist. <?php namespace AppHttpControllers; use IlluminateHttpRequest; …