@@ -230,6 +230,7 @@ for Eloquent models. The relationship types available are `belongsTo`, `hasOne`,
230230| ` belongsToMany ` | ` hasMany ` |
231231| ` hasManyThrough ` | ` hasManyThrough ` |
232232| ` morphTo ` | ` belongsTo ` |
233+ | ` morphOne ` | ` hasOne ` |
233234| ` morphMany ` | ` hasMany ` |
234235| ` morphToMany ` | ` hasMany ` |
235236| ` morphedByMany ` | ` morphMany ` |
@@ -512,7 +513,7 @@ in user. In this case, you would only ever want resources owned by that user to
512513from the client's perspective, any resources belonging to other users do not exist. In this case, a global
513514scope would ensure that a ` 404 Not Found ` is returned for resources that belong to other users.
514515
515- > In contrast, if your API serves a mixture of resources belonging to different users, then
516+ > In contrast, if your API serves a mixture of resources belonging to different users, then
516517` 401 Unauthorized ` or ` 403 Forbidden ` responses might be more appropriate when attempting to access other
517518users' resources. In this scenario, [ Authorizers] ( ./security.md ) would be a better approach than global
518519scopes.
@@ -610,10 +611,10 @@ class DummyClass extends AbstractResourceAdapter
610611 {
611612 // TODO: Implement persist() method.
612613 }
613-
614+
614615 /**
615616 * @inheritDoc
616- */
617+ */
617618 protected function destroy($record)
618619 {
619620 // TODO: Implement destroy() method.
@@ -704,15 +705,15 @@ on our adapter:
704705class Adapter extends AbstractAdapter
705706{
706707 // ...
707-
708+
708709 protected function creating(Comment $comment): void
709710 {
710711 $comment->createdBy()->associate(Auth::user());
711712 }
712713}
713714```
714715
715- > If your resource uses a [ client-generated ID] ( ../crud/creating.md#client-generated-ids ) , you
716+ > If your resource uses a [ client-generated ID] ( ../crud/creating.md#client-generated-ids ) , you
716717 will need to use the ` creating ` hook to assign the id to the model.
717718
718719There are two additional hooks that are invoked when an adapter is deleting a resource: ` deleting ` and ` deleted ` .
0 commit comments