/var/www/vhosts/nabawater/common/models/base
Edit: /var/www/vhosts/nabawater/common/models/base/BaseOtpTemp.php (1946B)
17],
[['mobile_no'], 'string', 'max' => 20],
[['email'], 'string', 'max' => 100],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'otp_temp_id' => Yii::t('common', 'Otp Temp ID'),
'otp_temp_key' => Yii::t('common', 'Otp Temp Key'),
'mobile_no' => Yii::t('common', 'Mobile No'),
'email' => Yii::t('common', 'Email'),
'user_details' => Yii::t('common', 'User Details'),
'otp' => Yii::t('common', 'Otp'),
'status' => Yii::t('common', 'Status'),
'created_at' => Yii::t('common', 'Created At'),
'modified_at' => Yii::t('common', 'Modified At'),
];
}
public function behaviors()
{
$behaviors = parent::behaviors();
$behaviors[] = [
'class' => AttributeKeyGeneratorBehaviour::class,
'attributes' => [
'otp_temp_key'
]
];
return $behaviors;
}
}