Top "Laravel-validation" questions

This tag references different approaches to validate your application's incoming data using Laravel.

laravel how to validate as equal to a variable

in laravel validation (registering) i want to compare one of the fields with a php variable (it should be equal …

laravel validation laravel-5 laravel-5.4 laravel-validation
Failed validation returns default error message even though custom messages supplied

I'm not getting the response I expect. This is the controller code for a Location web-service request: <?php namespace …

laravel laravel-5 laravel-validation laravel-5.5
Laravel Back to page with old input for validation

For the Update Profile Page I use the route as Route::get('editdriver/{data}', 'DriverController@EditDriver'); And in the …

php validation laravel laravel-4 laravel-validation
How to check file is uploaded or not in laravel

I am uploading an image file to the input file ImageUpload.I need to check if file has been uploaded …

laravel laravel-validation
How to validate input data using ajax in laravel

testAjax function inside PostsController class: public function testAjax(Request $request) { $name = $request->input('name'); $validator = Validator::make($request->…

php ajax laravel laravel-validation laravel-5.6
How to force FormRequest return json in Laravel 5.1?

I'm using FormRequest to validate from which is sent in an API call from my smartphone app. So, I want …

php laravel laravel-5 laravel-validation
How to use required_unless in laravel

I have gone through the validations in Laravel. I have taken so many validation rules from Laravel Validations Rules I …

php laravel laravel-validation
Laravel: How to use the ignore rule in Form Request Validation

Laravel has a 'unique' rule with an 'except' clause. From the validation documentation, it takes this form: unique:table,column,…

php laravel validation laravel-validation
Validating Matching Strings

When I use the Validation feature in Laravel, how can I add a pre-defined strings that are allowed in an …

laravel laravel-5 laravel-validation
How to validate multiple email in laravel validation?

I have done all the things for the validation for the variable in laravel but for emails I got one …

php validation email laravel laravel-validation