| xqd
@@ -15,6 +15,7 @@ class UsersInfoForm extends Form implements LazyRenderable
|
|
|
public function __construct($data = [], $key = null)
|
|
|
{
|
|
|
parent::__construct($data, $key);
|
|
|
+ dd($this->payload['user_id']);
|
|
|
}
|
|
|
|
|
|
public function handle(array $input)
|
| xqd
@@ -30,7 +31,7 @@ class UsersInfoForm extends Form implements LazyRenderable
|
|
|
|
|
|
public function form()
|
|
|
{
|
|
|
- $user_info = UserInfoModel::query()->where('user_id',52)->first();
|
|
|
+ $user_info = UserInfoModel::query()->where('user_id',$this->payload['user_id'])->first();
|
|
|
$this->fill($user_info);
|
|
|
$this->text('user_id',"用户ID")->readOnly();
|
|
|
$this->text('nickname', '昵称')->required();
|