mirror of
https://github.com/v2board/v2board.git
synced 2025-04-09 11:12:38 +08:00
update tutorial
This commit is contained in:
parent
19df032b57
commit
0a2c626f89
@ -18,12 +18,7 @@ class TutorialController extends Controller
|
|||||||
|
|
||||||
public function save(TutorialSave $request)
|
public function save(TutorialSave $request)
|
||||||
{
|
{
|
||||||
$params = $request->only([
|
$params = $request->only(array_keys(TutorialSave::RULES));
|
||||||
'title',
|
|
||||||
'description',
|
|
||||||
'steps',
|
|
||||||
'icon'
|
|
||||||
]);
|
|
||||||
|
|
||||||
if (!$request->input('id')) {
|
if (!$request->input('id')) {
|
||||||
if (!Tutorial::create($params)) {
|
if (!Tutorial::create($params)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user