I have doubts regarding Laravel one of which is reflected where to enter the field:
$password = hash::make('password');
Since I want to encrypt the password of the user creation form.
The View code is:
{{ Form::open(array('route' => 'users.store')) }}
<li>
{{ Form::label('password', 'Confirmar Password:') }}
{{ Form::password('password_confirmation') }}
</li>
{{Form::close()}}
Controller is:
public function store()
{
$input = Input::all();
$validation = Validator::make($input, User::$rules);
if ($validation->passes())
{
User::create($input);
return Redirect::route('users.index');
}
return Redirect::route('users.create')
->withInput()
->withErrors($validation)
->with('message', 'Existem erros de validação.');
}
How do I make this step in my application?
I made same question in SOen .