Fix syntax error in DataList docs
This commit is contained in:
parent
84cb596ab8
commit
daf995da63
|
@ -470,9 +470,9 @@ $players = Player::get()->exclude('FirstName', 'Sam');
|
|||
Remove both Sam and Sig..
|
||||
|
||||
```php
|
||||
$players = Player::get()->exclude(
|
||||
$players = Player::get()->exclude([
|
||||
'FirstName' => ['Sam','Sig']
|
||||
);
|
||||
]);
|
||||
```
|
||||
|
||||
`Exclude` follows the same pattern as filter, so for removing only Sam Minnée from the list:
|
||||
|
|
Loading…
Reference in New Issue