Open aogg opened 6 months ago
给数组,value必定null,这样就到不了array_merge
/** * Get or set input data. * * @param string|array $key * @param mixed $value * @return array|mixed */ public function input($key = null, $value = null) { if (is_null($key)) { return $this->inputs; } if (is_null($value)) { return Arr::get($this->inputs, $key); } if (is_array($key)) { $this->inputs = array_merge($this->inputs, $key); return; } Arr::set($this->inputs, $key, $value); }
{ "name": "dcat/laravel-admin", "version": "2.2.3-beta",
$frorm->text('xxx')->saveAsJson()看看能达到你想要的不
$frorm->text('xxx')->saveAsJson()
是修改input参数
给数组,value必定null,这样就到不了array_merge