mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +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)
|
||||
{
|
||||
$params = $request->only([
|
||||
'title',
|
||||
'description',
|
||||
'steps',
|
||||
'icon'
|
||||
]);
|
||||
$params = $request->only(array_keys(TutorialSave::RULES));
|
||||
|
||||
if (!$request->input('id')) {
|
||||
if (!Tutorial::create($params)) {
|
||||
|
Loading…
Reference in New Issue
Block a user