Minor fix

This commit is contained in:
Fritz Ramirez
2024-03-21 15:09:40 +08:00
parent fa18e1b06e
commit 514b04fdf5
@@ -15,10 +15,12 @@ class SectionRepository
public function create($title, $layout)
{
return Section::create([
'title' => $title,
'layout' => $layout,
]);
$section = new Section();
$section->title = $title;
$section->layout = $layout;
$section->save();
return $section;
}
public function update($id, $title, $layout)