Skip to content

Commit 07bd66c

Browse files
authored
Update README.md
* adds syntax on PHP example
1 parent 835a4bb commit 07bd66c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ php artisan vendor:publish --provider="StudioNet\GraphQL\ServiceProvider"
4141
Each source of data must have a corresponding definition in order to retrieve
4242
fetchable and mutable fields.
4343

44-
```
44+
```php
4545
# app/GraphQL/Definition/UserDefinition.php
4646

4747
namespace App\GraphQL\Definition;
@@ -58,7 +58,7 @@ use App\User;
5858
class UserDefinition extends Definition {
5959
/**
6060
* Set a name to the definition. The name will be lowercase in order to
61-
retrieve it with `\GraphQL::type` or `\GraphQL::listOf` methods
61+
* retrieve it with `\GraphQL::type` or `\GraphQL::listOf` methods
6262
*
6363
* @return string
6464
*/

0 commit comments

Comments
 (0)