rapyd-laravel icon indicating copy to clipboard operation
rapyd-laravel copied to clipboard

how to edit the post data

Open yljphp opened this issue 8 years ago • 1 comments

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'))); //?

yljphp avatar Apr 25 '16 09:04 yljphp

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.

tacone avatar Apr 26 '16 22:04 tacone