Questions tagged [laravel-validation]

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

Laravel provides several different approaches to validate your application's incoming data. By default, Laravel's base controller class uses a ValidatesRequests trait which provides a convenient method to validate incoming HTTP request with a variety of powerful validation rules.

Read More

852 questions
0
votes
0 answers

laravel 4.2 pipe basd validation error

getting error on when submit form ErrorException (E_UNKNOWN) Array to string conversion below is the code that generate error not validating the form $rulesvalida=array( 'txt_name' => 'required|min:3', 'txt_phone_number' =>…
Khan Muhammad
  • 412
  • 5
  • 18
0
votes
2 answers

Dynamically get MessageBag from ViewErrorBag?

In my app, I have a generic place for errors in the view that I display simply using: show_messages($errors->getMessages()); In the show_messages function I parse out the errors in the way I would like them displayed. However I started using some…
Rob
  • 10,851
  • 21
  • 69
  • 109
0
votes
1 answer

Add a key to validation failed message in laravel

I am building a json REST API. I need to extend the validation library to add a static tag "error":"validation_failed" for all validation failed json output. // create the validation rules ------------------------ $rules = array( …
Arun Unnikrishnan
  • 2,339
  • 2
  • 25
  • 39
0
votes
1 answer

Laravel Validation Login form validation fails in Password confimation?

I have two forms, login and signup forms, and one User model, i have set-up my rules and messages in User class, which are static members, $rules and $messages, the problem i face now, is in sign up form everything validate the it should be, but in…
Iliyass Hamza
  • 1,355
  • 3
  • 15
  • 28
0
votes
1 answer

Custom attribute name in Ardent validation message

I'm using Ardent in my Laravel project because I love its awesome model validation feature. Now I need to set human understandable attribute values in the validation error messages. I read that it can be accomplished by setting the $attributes…
Fabrizio D'Ammassa
  • 4,729
  • 25
  • 32
-1
votes
1 answer

Common Rule for Multiple Input Fields pattern in Laravel

I want to create a common rule for multiple Inpute fields with the name pattern "name_*". e.g. I have multiple input fields with the following names: name name_fruit name_animal name_people name_region name_language description keywords image And…
Anonymous Girl
  • 582
  • 8
  • 22
-1
votes
1 answer

How to Define the selected option with the old input in Laravel

Old Value in Select Option `