Is it possible to add conditional statements in Yii model
for eaxmple :
in users model I need to check if user is admin then in update information Controller mobile number field will display as required filed , but if user is normal user change field properties to empty or not required
Thanks in advance