rapyd-laravel
rapyd-laravel copied to clipboard
how to edit the post data
how to edit the post data
$edit->add('password','password', 'password')->rule('required|min:5|max:16|regex:/^[a-zA-Z0-9~@#%_]{5,16}$/i');
$edit->set('password',bcrypt(\Input::get('password'))); //?
Could you explain the problem in more detail? What are you trying to achieve?
The best way to encrypt passwords is usually to use eloquent mutators on the model class, rather than on the form.