Пример #1
0
 public function scenarios()
 {
     $parent = parent::scenarios();
     $parent['login'] = ['username', 'password'];
     $parent['register'] = ['username', 'password', 'email'];
     return $parent;
 }
Пример #2
0
 public function scenarios()
 {
     $parent = parent::scenarios();
     $parent['login'] = ['username', 'password'];
     $parent['create'] = ['username', 'password', 'email', 'status', 'role'];
     $parent['update'] = ['username', 'password', 'email', 'status', 'updated_at', 'role'];
     return $parent;
 }