Top "Laravel-validation" questions

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

Laravel 5.2 validation errors

I have some trouble with validation in Laravel 5.2 When i try validate request in controller like this $this->validate($…

laravel laravel-validation laravel-5.2
Laravel 5.3 Validation Fails when Variables are Null

Since upgrading laravel from 5.1 to 5.3, I've got couple of odd issues with Validation. When I post a data like this: …

laravel validation laravel-5.3 laravel-validation
How to validate time in laravel

I want to validate time in Laravel. Ex:- I want that when user input the time between 8 PM to 10 …

php laravel laravel-validation
Laravel: Validating a number greater than zero is failing

I gotta validate a price field which needs to be greater than zero (0.01 is valid) so I have the following …

php laravel validation laravel-validation
Pass old input after Form Request validation in laravel 5

if the validation fails it's not clear to me how i could pass the old input to fill again the …

laravel laravel-5 laravel-validation
Laravel Validation Rules If Value Exists in Another Field Array

I am working in Laravel 5.4 and I have a slightly specific validation rules need but I think this should be …

php laravel laravel-5 laravel-5.4 laravel-validation
Laravel 5 how to validate route parameters?

I want to validate the route parameters in the "form request" but don't know how to do it. Below is …

laravel laravel-5 routes laravel-validation laravel-request
Validate only alphanumeric characters in Laravel

I have the following code in my Laravel 5 app: public function store(Request $request){ $this->validate($request, ['filename' => …

php regex laravel laravel-5 laravel-validation
Laravel custom redirection after validation errors

Can I ask what have I done wrong in my LoginRequest.php where I've set a condition to redirect to …

php laravel laravel-validation
laravel url validation umlauts

I want to validate urls in laravel. My rules contain "url" => "required|url" This is working great. But when …

php laravel laravel-validation