From 4e624626919506e286438881bbd82afa41925d64 Mon Sep 17 00:00:00 2001 From: ractoon Date: Sat, 12 Apr 2025 18:22:29 -0600 Subject: [PATCH 1/2] shcema -> schema --- docs/1.x/schemas/sorting.md | 2 +- docs/2.x/schemas/sorting.md | 2 +- docs/3.x/schemas/sorting.md | 2 +- docs/4.x/schemas/sorting.md | 2 +- docs/5.x/schemas/sorting.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/1.x/schemas/sorting.md b/docs/1.x/schemas/sorting.md index df0d529..dddbe78 100644 --- a/docs/1.x/schemas/sorting.md +++ b/docs/1.x/schemas/sorting.md @@ -87,7 +87,7 @@ This works for attributes that relate to a database column that can be sorted. Our sort field classes can be used to describe additional sort fields that a client is allowed to send for a particular resource type. To add a sort field to -a schema, we can simply add it to the shcema's `sortables()` method. +a schema, we can simply add it to the schema's `sortables()` method. To create a sort field, we use the static `make` method. For example, if we wanted to add a sort field to our `posts` resource: diff --git a/docs/2.x/schemas/sorting.md b/docs/2.x/schemas/sorting.md index df0d529..dddbe78 100644 --- a/docs/2.x/schemas/sorting.md +++ b/docs/2.x/schemas/sorting.md @@ -87,7 +87,7 @@ This works for attributes that relate to a database column that can be sorted. Our sort field classes can be used to describe additional sort fields that a client is allowed to send for a particular resource type. To add a sort field to -a schema, we can simply add it to the shcema's `sortables()` method. +a schema, we can simply add it to the schema's `sortables()` method. To create a sort field, we use the static `make` method. For example, if we wanted to add a sort field to our `posts` resource: diff --git a/docs/3.x/schemas/sorting.md b/docs/3.x/schemas/sorting.md index df0d529..dddbe78 100644 --- a/docs/3.x/schemas/sorting.md +++ b/docs/3.x/schemas/sorting.md @@ -87,7 +87,7 @@ This works for attributes that relate to a database column that can be sorted. Our sort field classes can be used to describe additional sort fields that a client is allowed to send for a particular resource type. To add a sort field to -a schema, we can simply add it to the shcema's `sortables()` method. +a schema, we can simply add it to the schema's `sortables()` method. To create a sort field, we use the static `make` method. For example, if we wanted to add a sort field to our `posts` resource: diff --git a/docs/4.x/schemas/sorting.md b/docs/4.x/schemas/sorting.md index df0d529..dddbe78 100644 --- a/docs/4.x/schemas/sorting.md +++ b/docs/4.x/schemas/sorting.md @@ -87,7 +87,7 @@ This works for attributes that relate to a database column that can be sorted. Our sort field classes can be used to describe additional sort fields that a client is allowed to send for a particular resource type. To add a sort field to -a schema, we can simply add it to the shcema's `sortables()` method. +a schema, we can simply add it to the schema's `sortables()` method. To create a sort field, we use the static `make` method. For example, if we wanted to add a sort field to our `posts` resource: diff --git a/docs/5.x/schemas/sorting.md b/docs/5.x/schemas/sorting.md index df0d529..dddbe78 100644 --- a/docs/5.x/schemas/sorting.md +++ b/docs/5.x/schemas/sorting.md @@ -87,7 +87,7 @@ This works for attributes that relate to a database column that can be sorted. Our sort field classes can be used to describe additional sort fields that a client is allowed to send for a particular resource type. To add a sort field to -a schema, we can simply add it to the shcema's `sortables()` method. +a schema, we can simply add it to the schema's `sortables()` method. To create a sort field, we use the static `make` method. For example, if we wanted to add a sort field to our `posts` resource: From 184e14db4d679d6be7bb6390bf251feefdd71050 Mon Sep 17 00:00:00 2001 From: ractoon Date: Sat, 12 Apr 2025 18:22:55 -0600 Subject: [PATCH 2/2] Update resource assert --- docs/1.x/testing/resources.md | 2 +- docs/2.x/testing/resources.md | 2 +- docs/3.x/testing/resources.md | 2 +- docs/4.x/testing/resources.md | 2 +- docs/5.x/testing/resources.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/1.x/testing/resources.md b/docs/1.x/testing/resources.md index f56e3d7..51a2fd3 100644 --- a/docs/1.x/testing/resources.md +++ b/docs/1.x/testing/resources.md @@ -228,7 +228,7 @@ public function test(): void ->withData($data) ->patch('/api/v1/posts/' . $post->getRouteKey()); - $response->assertFetchedOne($expected); + $response->assertFetchedOne($data); $this->assertDatabaseHas('posts', [ 'id' => $post->getKey(), diff --git a/docs/2.x/testing/resources.md b/docs/2.x/testing/resources.md index f56e3d7..51a2fd3 100644 --- a/docs/2.x/testing/resources.md +++ b/docs/2.x/testing/resources.md @@ -228,7 +228,7 @@ public function test(): void ->withData($data) ->patch('/api/v1/posts/' . $post->getRouteKey()); - $response->assertFetchedOne($expected); + $response->assertFetchedOne($data); $this->assertDatabaseHas('posts', [ 'id' => $post->getKey(), diff --git a/docs/3.x/testing/resources.md b/docs/3.x/testing/resources.md index f56e3d7..51a2fd3 100644 --- a/docs/3.x/testing/resources.md +++ b/docs/3.x/testing/resources.md @@ -228,7 +228,7 @@ public function test(): void ->withData($data) ->patch('/api/v1/posts/' . $post->getRouteKey()); - $response->assertFetchedOne($expected); + $response->assertFetchedOne($data); $this->assertDatabaseHas('posts', [ 'id' => $post->getKey(), diff --git a/docs/4.x/testing/resources.md b/docs/4.x/testing/resources.md index f56e3d7..51a2fd3 100644 --- a/docs/4.x/testing/resources.md +++ b/docs/4.x/testing/resources.md @@ -228,7 +228,7 @@ public function test(): void ->withData($data) ->patch('/api/v1/posts/' . $post->getRouteKey()); - $response->assertFetchedOne($expected); + $response->assertFetchedOne($data); $this->assertDatabaseHas('posts', [ 'id' => $post->getKey(), diff --git a/docs/5.x/testing/resources.md b/docs/5.x/testing/resources.md index f56e3d7..51a2fd3 100644 --- a/docs/5.x/testing/resources.md +++ b/docs/5.x/testing/resources.md @@ -228,7 +228,7 @@ public function test(): void ->withData($data) ->patch('/api/v1/posts/' . $post->getRouteKey()); - $response->assertFetchedOne($expected); + $response->assertFetchedOne($data); $this->assertDatabaseHas('posts', [ 'id' => $post->getKey(), pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy