Skip to content

Commit 8c7a77b

Browse files
authored
Added php syntax highlighting (#527)
1 parent 4505451 commit 8c7a77b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/basic-usage/retrieving-tagged-models.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ YourModel::withAnyTags(['tag 1', 'tag 2'], 'myType')->get();
2121

2222
The `withAllTags` scope will return only the models that have all of the given tags attached to them. If you pass the `type` argument, it will look for tags with specified type, if not, it will only look for tags that have no type. So when passing a non-existing tag, or a correct tag name with the wrong type, no models will be returned.
2323

24-
```
24+
```php
2525
//returns models that have all given tags that are not saved with a type
2626
YourModel::withAllTags(['tag 1', 'tag 2'])->get();
2727

@@ -42,7 +42,7 @@ YourModel::withAnyTagsOfAnyType(['tag 1', 'tag 2'])->get();
4242

4343
The `withAllTagsOfAnyType` scope will return only the models that have all of the given tags attached to them, but doesn't restrict given tags to any type if they are passed as `string`. So when passing a non-existing tag no models will be returned.
4444

45-
```
45+
```php
4646
//returns models that have all given tags of any type
4747
YourModel::withAllTagsOfAnyType(['tag 1', 'tag 2'])->get();
4848
```

0 commit comments

Comments
 (0)