1
I have doubts about Laravel one of which is reflected where to insert the field:
$password = hash::make('password');
Since I want to encrypt the password of the user creation form.
The code of View is:
{{ Form::open(array('route' => 'users.store')) }}
<li>
{{ Form::label('password', 'Confirmar Password:') }}
{{ Form::password('password_confirmation') }}
</li>
{{Form::close()}}
Of 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 to do this step in my application?
I made the same question on Soen.
You don’t have to tell me in the O.R. And if you have answer there before that here, you can put here the solution (preferably with your own words) and quote the source as well. Good luck!
– brasofilo