update tutorial

This commit is contained in:
Tokumeikoi 2020-02-18 21:46:00 +08:00
parent 19df032b57
commit 0a2c626f89

View File

@ -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)) {