Top "Laravel-validation" questions

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

Validating a Unique Slug on Update in Laravel 5

I currently have a model that has a text field and a slug field. I validate that the slug is …

php laravel laravel-5 laravel-validation laravel-request
Laravel Extended Validation custom message

I wanted to create this extended validation. Validator::extend('my_custom_validation_rule', function ($attribute, $value, $parameters) { // I guess I …

php laravel laravel-validation
Laravel Validation unique/exists with different database connection

In the documentation, I saw you could set a connection for the unique rule which is great. However, the exists …

laravel laravel-5.1 laravel-validation
Laravel Illuminate\Validation\Rule not found

I am trying to submit a form and validate the content. In one of the requests I need to make …

php laravel laravel-validation
Validate array of inputs in form in Laravel 5.7

My form has the same input field multiple times. My form field is as follows: <input type='text' name=…

php laravel laravel-5 laravel-validation laravel-5.7
Laravel validation OR

I have some validation that requires a url or a route to be there but not both. $this->validate($…

php laravel laravel-5 laravel-5.1 laravel-validation
Validating latitude/longitude in Laravel validation regex rule - preg_match(): No ending delimiter '/' found

I am trying to validate latitude/longitude in Laravel 5.4 project with custom regex rule (based on this answer: https://stackoverflow.…

php regex laravel latitude-longitude laravel-validation
How to Validate File Upload in Laravel

I've completed a tutorial to upload image files. How can I validate file uploads in the view when a user …

laravel laravel-validation laravel-filesystem
Laravel 4 Unique Validation Rules Not Working

need help updating a unique rule in my validation rules. I have a abstract validator that will validate a rules …

php laravel laravel-4 eloquent laravel-validation
change value of $request before validation in laravel 5.5

I have a form in route('users.create'). I send form data to this function in its contoller: public function …

laravel laravel-validation laravel-5.5