修复文章作者

This commit is contained in:
Edward Yang 2023-02-12 01:02:47 +08:00
parent 23f46124cd
commit 26d8f562ee
1 changed files with 3 additions and 3 deletions

View File

@ -72,9 +72,9 @@ class PageRepo
$page->fill([
'page_category_id' => (int) ($data['page_category_id'] ?? 0),
'position' => (int) ($data['position'] ?? 0),
'active' => (bool) ($data['active'] ?? true),
'author' => (bool) ($data['author'] ?? true),
'views' => (int) ($data['views'] ?? 0),
'active' => (bool) ($data['active'] ?? true),
'author' => $data['author'] ?? '',
'views' => (int) ($data['views'] ?? 0),
]);
$page->saveOrFail();