mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +08:00
update: api
This commit is contained in:
parent
8a20a70513
commit
ad8e2b8e80
@ -166,7 +166,7 @@ class ConfigController extends Controller
|
|||||||
|
|
||||||
public function save(ConfigSave $request)
|
public function save(ConfigSave $request)
|
||||||
{
|
{
|
||||||
$data = $request->input();
|
$data = $request->validated();
|
||||||
$array = \Config::get('v2board');
|
$array = \Config::get('v2board');
|
||||||
foreach ($data as $k => $v) {
|
foreach ($data as $k => $v) {
|
||||||
if (!in_array($k, array_keys($request->validated()))) {
|
if (!in_array($k, array_keys($request->validated()))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user