Support the ongoing development of Laravel.io →
posted 10 years ago
Validation
Last updated 2 years ago.
0

You are passing arguments incorrectly to Validator::make() method it should be like: Validator($dataArray,$rulesArray). Your 3rd argument will be interpreted as a custom validation message.

Last updated 2 years ago.
0

Your validator::make call is off a bit.

The first argument is your input and the second are your rules.

So with the way you have it setup you are only passing email as an input and not the rest. Try the code below.

$validator = Validator::make( 
	Input::all(),
	array(
		'email' => 'required|unique:users,email',
		'password' => 'required|min:5', 
		'username' => 'required|min:5',
	)
);
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.