laravel-validator icon indicating copy to clipboard operation
laravel-validator copied to clipboard

Laravel Validation Service

Results 26 laravel-validator issues
Sort by recently updated
recently updated
newest added
trafficstars

When using custom validation rules AbstractValidator::parserValidationRules() fails because it is expecting all rules to be defined as a string. Laravel Validator allows you to define custom rules as Rule objects....

The licence was missing from composer.json

We have possibility to run a validation in two different way: run a validator directly in the controller and validate request data in the repository during create/update. I have found...

![1595575098780](https://user-images.githubusercontent.com/49017202/88368604-fe2d0680-cdc0-11ea-964b-173246ae3ca8.jpg)

How can I add custome validator rule? like `ValidatorInterface::RULE_SWITCH`

How to pass the reference id for update rules. I know we can pass it by setId but how to set that as reference inside update rules. For example 'slug'...

hi,I use laravel validator Run into a problem ValidatorInterface::RULE_UPDATE => [ 'nickname' => 'required|unique:table,columnName,id', ] but How to Unique Rule To Ignore table Given id?

Hi, how we can use custom roles inside validator like this ``` 'email' => [ 'required', Rule::exists('staff')->where(function ($query) { $query->where('account_id', 1); }), ], ```