Top "Laravel-validation" questions

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

Laravel validation: exists with additional column condition - custom validation rule

Is there is a way of referencing another field when specifying the exists validation rule in Laravel? I want to …

php validation laravel laravel-4 laravel-validation
Custom Laravel validation messages

I'm trying to create customized messages for validation in Laravel 5. Here is what I have tried so far: $messages = [ 'required' =&…

php laravel laravel-validation
Image Validation in Laravel 5 Intervention

I have installed intervention in Laravel 5.1 and I am using the image upload and resize something like this: Route::post(…

laravel laravel-5 laravel-validation intervention laravel-filesystem
validating a numeric input's length in laravel 5

foo.blade.php <input type="text" name="national-id" /> FooController.php $rules = [ 'national-id' => 'required|size:10|numeric' ]; the national-id …

php laravel laravel-5 laravel-5.2 laravel-validation
Undefined variable: errors in Laravel

When I want to register a user in my laravel project, the page always says Undefined variable: errors (View: /var/…

laravel laravel-5 laravel-validation laravel-middleware laravel-5.2
How add Custom Validation Rules when using Form Request Validation in Laravel 5

I am using form request validation method for validating request in laravel 5.I would like to add my own validation …

php laravel laravel-5 custom-validators laravel-validation
How to use the request route parameter in Laravel 5 form request?

I am new to Laravel 5 and I am trying to use the new Form Request to validate all forms in …

php laravel laravel-5 laravel-routing laravel-validation
How to return custom error message from controller method validation

How to return a custom error message using this format? $this->validate($request, [ 'thing' => 'required' ]);

php laravel validation laravel-validation
How to validate an input field if value is not null in Laravel

I am trying to create and update users with laravel 5.4 This is the validation added for create user. It works. $…

php laravel laravel-5.4 laravel-validation
Laravel check for unique rule without itself in update

I am having my validation rules for unique in the update section. In inserting or adding the unique rule is …

php laravel unique rule laravel-validation