Support the ongoing development of Laravel.io →

156 Threads

posted 9 years ago

how to validate that one parameter is less or equal to another?

Hi, I have the following rules: $rules = array( 'purchase_amount' => 'required|integer',...

0 Likes
1 Replies
Solved
posted 9 years ago

Forcing A Unique Rule To Ignore A Given ID

Hi, According to the Laravel documentation, I can do: 'email' => 'unique:users,email_address,10'...

0 Likes
1 Replies
Solved
posted 9 years ago

How to define custom vlidation rules

Hi, I have two parameters that can have various values. One of the rules that I need to have is: &qu...

0 Likes
2 Replies
Solved

How to return form data if validate false

As the title, I have a form with a lot of fields and I want to return form data quickly when my vali...

0 Likes
1 Replies
Solved

validation error

when I tried to validate form field with number & min, min filter does not work properly. e.g. '...

0 Likes
2 Replies
Solved
posted 9 years ago

Run custom validation only if required_if check returns true?

I have a validation rule like this... required_if:field_name,field_value|date_format:m/d/Y|futureDat...

0 Likes
1 Replies
Solved

Laravel 5: How to inject a model that has been bound to route into the authorized method of FormRequest

I've bound a model to a route parameter: $this->model('employee', 'App\Employee'); This is worki...

0 Likes
3 Replies
Solved

4.3 passing eloquent model from FormRequest to controller.

If we are doing authorization in the FormRequest is there a way to pass the model to the controller...

0 Likes
1 Replies
Solved

Undefined variable: validator

Hi there, I new there and with laravel. I try make users Authentication but have all time have this...

0 Likes
3 Replies
Solved

Ardent validation in model of unsigned

I can validate numeric using Ardent this way in my model: public static $rules = array( 'featid'...

0 Likes
3 Replies
Solved

Messagebag broken on 4.3

When parsing the errors in the following way it works as expected. @foreach($errors->all() as $er...

0 Likes
6 Replies
Solved

Validation of array field

My question is the following. I have a system that the User will register the series of a note. How...

0 Likes
1 Replies
Solved

ErrorException (E_UNKNOWN) Undefined variable...

Hi, I have this function for password recovery public function postForgotPassword() {...

0 Likes
3 Replies
Solved
posted 9 years ago

Validation service not working

Hey guys, In my pastebin is my small piece of code and question. Please take a look there: http://la...

0 Likes
1 Replies
Solved
posted 9 years ago

Illegal string offset 'name' when validating against unique

$rules = array( 'first_name' => array('required'), 'last_name' => array('required'), '...

0 Likes
10 Replies
Solved
posted 9 years ago

Abstracting repeated model-validation related code out of repository

We have been implementing the repository pattern along side self-validating models using Magniloquen...

0 Likes
1 Replies
Solved

Search form validation

Hello, i am facing problems with a validating GET request with a built-in validator class: Controlle...

0 Likes
7 Replies
Solved

Accessing validation error messages without redirecting

Most examples go something like this: return Redirect::to('register')->withErrors($validator); H...

0 Likes
1 Replies
Solved

Should I use confide, entrust and ardent?

Hello everyone, I'm new to laravel and I've been learning it for a couple of weeks now. The question...

0 Likes
2 Replies
Solved

Redirect back to same page

Please help. If a user is on say xyz.com/course/1/edit and closes the browser, only to return after...

0 Likes
2 Replies
Solved

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.