| xqd
@@ -12,11 +12,10 @@ class UsersInfoForm extends Form implements LazyRenderable
|
|
|
{
|
|
|
use LazyWidget;
|
|
|
|
|
|
- private $model;
|
|
|
+
|
|
|
public function __construct($data = [], $key = null)
|
|
|
{
|
|
|
parent::__construct($data, $key);
|
|
|
- $this->model=$data;
|
|
|
}
|
|
|
|
|
|
public function handle(array $input)
|
| xqd
@@ -44,7 +43,6 @@ class UsersInfoForm extends Form implements LazyRenderable
|
|
|
{
|
|
|
//$user_info = UserInfoModel::query()->where('user_id',$this->payload['id'])->first();
|
|
|
//dd($this->model());
|
|
|
- $this->fill($this->model);
|
|
|
$this->text('user_id');//->value($this->payload['id'])->readOnly();
|
|
|
$this->text('nickname', '昵称');//->value($user_info->nickname);
|
|
|
$this->image('avatar', '头像');//->url($user_info->avatar);
|