Fix syntax error in DataList docs

This commit is contained in:
Loz Calver 2019-09-30 09:36:12 +01:00 committed by GitHub
parent 84cb596ab8
commit daf995da63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: