Skip to content

Commit

Permalink
fix(laravel): code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Sep 19, 2024
1 parent 1fc72c7 commit fb72e1e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions laravel/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ Then, enable GraphQL in `config/api-platform.php`:
```

Then open `http://127.0.0.1:8000/api/graphql` and replace the default GraphQL query example with:
```

```graphql
{
books(first: 3) {
edges {
Expand Down Expand Up @@ -304,7 +305,7 @@ and when we request a Book we obtain:

To create a Book related to an author, you should use IRIs to reference the relation:

```http
```json
PATCH /api/books/1
Content-Type: application/merge-patch+json

Expand Down Expand Up @@ -582,7 +583,7 @@ php artisan make:request BookFormRequest

Then, add validation rules to the generated class (`app/Http/Requests/BookFormRequest.php` in our example):

```
```php
namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;
Expand Down

0 comments on commit fb72e1e

Please sign in to comment.