check(); } /** * @return array */ public function getUserData(): array { return [ 'email' => $this->string('email'), 'blocked' => $this->integer('blocked') === 1, 'blocked_code' => $this->string('blocked_code'), 'password' => $this->string('password'), ]; } /** * @return array */ public function rules() { return [ 'id' => 'required|exists:users,id', 'email' => 'email|required', 'password' => 'confirmed|secure_password', 'blocked_code' => 'between:0,30', 'blocked' => 'between:0,1|numeric', ]; } }