Skip to content
This repository was archived by the owner on Jan 27, 2020. It is now read-only.

Commit 720d06e

Browse files
committed
fix code examples
1 parent 119f42e commit 720d06e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ If you're using MySQL 5.7 or above, it's recommended that you use the json data
143143
this will allow you to query these columns like this:
144144

145145
```php
146-
Company::whereRaw('name->"$.en" = \'Monsters Inc.\'')->orderByRaw('specs->"$.founded_at"')->get;
146+
Company::whereRaw('name->"$.en" = \'Monsters Inc.\'')->orderByRaw('specs->"$.founded_at"')->get();
147147
```
148148

149149
However in laravel 5.2.23 and above you can use the fluent syntax:
150150

151151
```php
152-
Company::where('name->en', 'Monsters Inc.')->orderBy('specs->founded_at')->get;
152+
Company::where('name->en', 'Monsters Inc.')->orderBy('specs->founded_at')->get();
153153

154-
```
154+
```

0 commit comments

Comments
 (0)