Questions tagged [laravel-validation]

This tag pertains to various methods for verifying the incoming data of your application using Laravel.

Issues with JSON validation in Laravel 5.4 are causing problems

Having trouble validating JSON in my Laravel 5.4 POST request. The validator is failing even though the JSON appears to be valid. I suspect there may be an issue with my validation rules or implementation rather than a bug. The POST endpoint I have set up ...

Customize Laravel Validator messages for the "sometimes" validation rule

In this snippet of my code, I have implemented form input validation: public function saveData(Request $request){ $form_data = $request->all(); $validation_fields = [ 'first_name' => 'required', 'last_name' => 'required', ...