mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-17 05:27:46 +02:00
fix(types): update fake seeders types + fix bugs
This commit is contained in:
parent
c72f4be6d8
commit
76a4bf3441
15 changed files with 78 additions and 59 deletions
|
|
@ -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',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue