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

Is your password confirmation from field named

password_confirmation

?

Last updated 2 years ago.
0
<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>
Last updated 2 years ago.
0

Try this

$validator = Validator::make(Input::only('username', 'email', 'password','password_confirmation'), $rules);
Last updated 2 years ago.
0

Thanks so much! Now worked perfect.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

gsyarov gsyarov Joined 29 Sep 2014

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.