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.
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',
)
);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community