Skip to content

Commit

Permalink
fix: error on empty flatfile documentation dataset
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Frey <[email protected]>
  • Loading branch information
lukas-frey committed Oct 26, 2024
1 parent a3013ee commit f8af05b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Models/FlatfileDocumentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ class FlatfileDocumentation extends Model implements Documentable
{
use Sushi;

protected $schema = [
'id' => 'string',
'slug' => 'string',
'path' => 'string',
'content' => 'text',
'title' => 'string',
'group' => 'string',
'icon' => 'string',
'parent' => 'string',
'order' => 'integer',
];

public $incrementing = false;

public function getLocale(): string
Expand Down

0 comments on commit f8af05b

Please sign in to comment.