mirror of
https://github.com/v2board/v2board.git
synced 2025-02-11 07:59:11 +08:00
update
This commit is contained in:
parent
a78f6178bd
commit
6ccd8e583f
@ -21,8 +21,11 @@ class NoticeController extends Controller
|
|||||||
'title',
|
'title',
|
||||||
'content'
|
'content'
|
||||||
]);
|
]);
|
||||||
|
if (!Notice::create($data)) {
|
||||||
|
abort(500, '保存失败');
|
||||||
|
}
|
||||||
return response([
|
return response([
|
||||||
'data' => Notice::create($data)
|
'data' => true
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user