| xqd
@@ -16,7 +16,6 @@ class UsersInfoForm extends Form implements LazyRenderable
|
|
|
{
|
|
|
parent::__construct($data, $key);
|
|
|
$this->user_info = UserInfoModel::query()->where('user_id',$key)->first();
|
|
|
- $this->fill($this->user_info );
|
|
|
}
|
|
|
|
|
|
public function handle(array $input)
|
| xqd
@@ -33,7 +32,7 @@ class UsersInfoForm extends Form implements LazyRenderable
|
|
|
public function form()
|
|
|
{
|
|
|
// $user_info = UserInfoModel::query()->where('user_id',$this->payload['user_id'])->first();
|
|
|
-// $this->fill($user_info);
|
|
|
+ $this->fill($this->user_info);
|
|
|
$this->text('user_id',"用户ID")->readOnly();
|
|
|
$this->text('nickname', '昵称')->required();
|
|
|
$this->image('avatar', '头像')->saveFullUrl()->uniqueName()->removable(false);
|