修复文章作者
This commit is contained in:
parent
23f46124cd
commit
26d8f562ee
|
|
@ -72,9 +72,9 @@ class PageRepo
|
||||||
$page->fill([
|
$page->fill([
|
||||||
'page_category_id' => (int) ($data['page_category_id'] ?? 0),
|
'page_category_id' => (int) ($data['page_category_id'] ?? 0),
|
||||||
'position' => (int) ($data['position'] ?? 0),
|
'position' => (int) ($data['position'] ?? 0),
|
||||||
'active' => (bool) ($data['active'] ?? true),
|
'active' => (bool) ($data['active'] ?? true),
|
||||||
'author' => (bool) ($data['author'] ?? true),
|
'author' => $data['author'] ?? '',
|
||||||
'views' => (int) ($data['views'] ?? 0),
|
'views' => (int) ($data['views'] ?? 0),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$page->saveOrFail();
|
$page->saveOrFail();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue