Skip to content

Commit c7817c7

Browse files
da-masklrljoe
andauthored
docs: add reminder of requirement to use toggle method (#2208)
Co-authored-by: Joe <[email protected]>
1 parent d96df8e commit c7817c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/column-types/boolean_columns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ BooleanColumn::make('Active', 'status')
8989
->toggleable('changeStatus'),
9090
```
9191

92-
Then your "changeStatus" method may look like
92+
Then your "changeStatus" method may look like (make sure you are selecting the `id` in the query)
9393
```php
9494
public function changeStatus(int $id)
9595
{
@@ -108,7 +108,7 @@ BooleanColumn::make('Active', 'status')
108108
->toggleable('changeStatus'),
109109
```
110110

111-
Then your "changeStatus" method may look like
111+
Then your "changeStatus" method may look like (make sure you are selecting the `id` in the query)
112112
```php
113113
public function changeStatus(int $id)
114114
{

0 commit comments

Comments
 (0)