laravel-validation Questions

3

Solved

I was creating a new Laravel project and when debugging the errors of a form request, I noticed that my ErrorBag was always empty. Even when in the controller $validator->fails() returned true. ...
Anjanetteanjela asked 2/4, 2016 at 18:48

1

Solved

I have gone through the validations in Laravel. I have taken so many validation rules from Laravel Validations Rules I want to user required_unless rule for following conditions. $rules = array( ...
Yepez asked 20/5, 2016 at 8:43

2

Solved

I have some validation that requires a url or a route to be there but not both. $this->validate($request, [ 'name' => 'required|max:255', 'url' => 'required_without_all:route|url', 'r...
Spandau asked 21/1, 2016 at 4:41

1

I am running a Laravel 5 application that has its main view rendered using React.js. On the page, I have a simple input form, that I am handling with Ajax (sending the input back without page refre...
Pheon asked 18/7, 2015 at 3:59

1

Solved

Hi I have a problem in laravel 5 existing validation. In my controller and request. class PostEmailRequest extends Request{ /** * Get the validation rules that apply to the request. * * @retur...

2

Solved

Using Laravel's localization (http://laravel.com/docs/5.1/localization) I have created some custom validation attributes to provide friendlier validation errors (for instance, 'First Name' instead ...
Thieve asked 7/7, 2015 at 10:16

2

Solved

I am using Laravel 5's Command Bus and I am unclear how to implement a validator class. I would like to create a ResizeImageCommandValidator class that checks that the image is actually an image b...
Nunes asked 30/4, 2015 at 0:32

1

In Laravel, how do I validate an email address and force it to have a suffix like g.go.edu?
Otolaryngology asked 18/4, 2015 at 17:49

1

Solved

I have password change form and there's two fields in it: old_password and new_password. I'm stuck with validator for old password, here's what I done: Validator::extend('old_password', function(...
Advertence asked 17/4, 2015 at 8:43

1

Solved

I have come across an instance where I need to alter the data that needs to be validated i.e. when no slug has been submitted, create one from the title and then validate that it is unique. The re...
Tallahassee asked 19/2, 2015 at 7:34

2

Solved

I want to validate urls in laravel. My rules contain "url" => "required|url" This is working great. But when a user submits an url with umlauts, the rule check will always fail. Chars like...
Nectarine asked 12/2, 2015 at 20:24

2

I am trying to validate an update user profile form, whereby the validation should check that the email doesn't exist already, but disregard if the users existing email remains. However, this cont...
Happy asked 20/1, 2015 at 20:55

© 2022 - 2024 — McMap. All rights reserved.