Skip to content

Commit 8074f2b

Browse files
committed
add php to markdown
1 parent 3afc59d commit 8074f2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ $post = Post::meta()
285285

286286
When you need to retrive multiple results from your model, you can eager load `metas`
287287

288-
```
288+
```php
289289
$post = Post::with(['metas'])->get();
290290
```
291291

@@ -294,7 +294,7 @@ $post = Post::with(['metas'])->get();
294294
When you convert a model to an array (or json) and you don't need all meta fields, you can create a model's property to prevent metas from being added to the resulting array.
295295
You can also use it on eloquent relations.
296296

297-
```
297+
```php
298298
/* Post model */
299299
public $hideMeta = true; // Do not add metas to array
300300
```

0 commit comments

Comments
 (0)