Is your password confirmation from field named
password_confirmation
?
<div class="col-md-offset-4 col-md-4">
@include('public.errors')
{{ Form::open(['route' => 'user_register_path']) }}
<!-- Username -->
<div class="form-group">
{{ Form::label('username', 'Username:') }}
{{ Form::text('username', null, ['class' => 'form-control']) }}
</div>
<!-- Email -->
<div class="form-group">
{{ Form::label('email', 'Email:') }}
{{ Form::text('email', null, ['class' => 'form-control']) }}
</div>
<!-- Password -->
<div class="form-group">
{{ Form::label('password', 'Password:') }}
{{ Form::password('password', ['class' => 'form-control']) }}
</div>
<!-- Password Confirmation -->
<div class="form-group">
{{ Form::label('password_confirmation', 'Password Confirmation:') }}
{{ Form::password('password_confirmation', ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::submit('Register', ['class' => 'btn btn-primary']) }}
</div>
{{ Form::close() }}
</div>
Try this
$validator = Validator::make(Input::only('username', 'email', 'password','password_confirmation'), $rules);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community