Skip to content

Commit

Permalink
docs: add reminder of requirement to use toggle method
Browse files Browse the repository at this point in the history
  • Loading branch information
da-mask authored Feb 20, 2025
1 parent 28cc21a commit df4b622
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/column-types/boolean_columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ BooleanColumn::make('Active', 'status')
->toggleable('changeStatus'),
```

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

Then your "changeStatus" method may look like
Then your "changeStatus" method may look like (make sure you are selecting the `id` in the query)
```php
public function changeStatus(int $id)
{
Expand Down

0 comments on commit df4b622

Please sign in to comment.