fix(types): update fake seeders types + fix bugs

This commit is contained in:
Yassine Doghri 2021-06-08 16:57:04 +00:00
commit 76a4bf3441
No known key found for this signature in database
GPG key ID: 3E7F89498B960C9F
15 changed files with 78 additions and 59 deletions

View file

@ -28,7 +28,7 @@ class PageModel extends Model
/**
* @var string[]
*/
protected $allowedFields = ['id', 'title', 'slug', 'content'];
protected $allowedFields = ['id', 'title', 'slug', 'content_markdown', 'content_html'];
/**
* @var string
@ -52,7 +52,7 @@ class PageModel extends Model
'title' => 'required',
'slug' =>
'required|regex_match[/^[a-zA-Z0-9\-]{1,191}$/]|is_unique[pages.slug,id,{id}]',
'content' => 'required',
'content_markdown' => 'required',
];
/**