From 85de2b8e4d20db9fdec253e53a6cc77fccd7c017 Mon Sep 17 00:00:00 2001 From: HergenD <32772820+HergenD@users.noreply.github.com> Date: Wed, 16 Sep 2020 16:02:48 +0200 Subject: [PATCH] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 599bdde..291594f 100644 --- a/readme.md +++ b/readme.md @@ -104,7 +104,7 @@ For example, add the following relationship in the default User model: ```php public function documents() { - return $this->hasMany('App\Document', 'user', 'uuid'); + return $this->hasMany('App\Models\Document', 'user', 'uuid'); } ``` This assumes you have a Documents model where the uuid provided by your identity provider is stored in a 'user' column, this can be anything you want of course, but the local key should always be uuid.