amargoCactus
09/28/2022, 4:33 PMifox
09/28/2022, 10:18 PMamargoCactus
09/28/2022, 10:44 PMepicuristic
09/29/2022, 3:23 AMafatmustafa
09/29/2022, 7:40 AMmateoD
09/29/2022, 7:52 AM@formField('input', [
'name' => 'email',
'label' => 'Email',
'maxlength' => 100,
'required' => true,
'type' => 'email',
'placeholder' => 'Email',
])
Harings Rob
09/29/2022, 7:53 AMmateoD
09/29/2022, 7:54 AMHarings Rob
09/29/2022, 7:54 AMmateoD
09/29/2022, 7:54 AMmateoD
09/29/2022, 7:56 AMpublic function rulesForCreate()
{
return ['block.*.email'=> 'required'];
}
Harings Rob
09/29/2022, 7:56 AMmateoD
09/29/2022, 7:58 AMHarings Rob
09/29/2022, 8:00 AMphp
@twillBlockValidationRules([
'email' => 'required|email'
])
In that case.mateoD
09/29/2022, 8:02 AMHarings Rob
09/29/2022, 8:03 AMafatmustafa
09/29/2022, 10:14 AMHarings Rob
09/29/2022, 10:16 AMafatmustafa
09/29/2022, 11:09 AMifox
09/29/2022, 4:35 PMauthentications
method in your code?tfilos
09/29/2022, 9:34 PMtfilos
09/29/2022, 9:35 PMtfilos
09/29/2022, 9:35 PMtfilos
09/29/2022, 9:37 PMifox
09/29/2022, 9:41 PMifox
09/29/2022, 9:41 PMckmirafss
09/29/2022, 9:57 PMkalle
09/29/2022, 10:29 PMprepareFieldsBeforeCreate
, prepareFieldsBeforeSave
to hash your password field before inserting. And after that in the same method call the parent method to finish the request.ifox
09/29/2022, 10:30 PMckmirafss
09/29/2022, 10:30 PM