Skip to content

Commit 117043e

Browse files
Update creating-components.md
Missing a `;` in the configure method and the columns method wasn't returning an array.
1 parent 2788f4a commit 117043e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/usage/creating-components.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ class UsersTable extends DataTableComponent
2222

2323
public function configure(): void
2424
{
25-
$this->setPrimaryKey('id')
25+
$this->setPrimaryKey('id');
2626
}
2727

2828
public function columns(): array
2929
{
30-
Column::make('ID', 'id')
31-
->sortable(),
32-
Column::make('Name')
33-
->sortable(),
30+
return [
31+
Column::make('ID', 'id')
32+
->sortable(),
33+
Column::make('Name')
34+
->sortable(),
35+
];
3436
}
3537
}
3638
```

0 commit comments

Comments
 (0)