python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Laravel, use only custom rule class for validation?
I have some dynamic fields and can't use usual field validation. My question is, how can I use only my custom rule class without defining if it's required or not?
This doesn't work:
$this->validate...
Marc Sinili
Votes: 0
Answers: 1
How to add two unique validation for one input
I'm trying to validate an input like this:
$validatedPhone = $request->validate([
'user_input' => 'required|unique:users,user_name|regex:/^09\d{9}$/|max:11|min:11',
]
Now I need to say ...
Pouya
Votes: 0
Answers: 1
Validation always fail in production but working in local in laravel
I'm trying to test my API endpoints in production but it always return the required validation failure. But when I try in my local, it is working well. Please see details below.
PeriodsRequest.php
pub...
Blues Clues
Votes: 0
Answers: 1
Validator not validating the request in Laravel 8
I am inserting the data. The data is being entering quite fine but whenever I enter a letter the entry is done but that entry is converted to '0'.
This is my controller store function:
public function...
Bilal Ahmed
Votes: 0
Answers: 0