From 361f47dc8e88acc9a1ecba7dbde6349b030f4f69 Mon Sep 17 00:00:00 2001 From: Jonas Staudenmeir Date: Mon, 15 Jul 2024 13:40:25 +0200 Subject: [PATCH] Improve README --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 495a92b..355eaa2 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ class Post extends Model { use \Znck\Eloquent\Traits\BelongsToThrough; - public function country() + public function country(): \Znck\Eloquent\Relations\BelongsToThrough { return $this->belongsToThrough(Country::class, User::class); } @@ -76,7 +76,7 @@ class Comment extends Model { use \Znck\Eloquent\Traits\BelongsToThrough; - public function country() + public function country(): \Znck\Eloquent\Relations\BelongsToThrough { return $this->belongsToThrough(Country::class, [User::class, Post::class]); } @@ -92,7 +92,7 @@ class Comment extends Model { use \Znck\Eloquent\Traits\BelongsToThrough; - public function country() + public function country(): \Znck\Eloquent\Relations\BelongsToThrough { return $this->belongsToThrough( Country::class, @@ -117,7 +117,7 @@ class CustomerAddress extends Model { use \Znck\Eloquent\Traits\BelongsToThrough; - public function vendorCustomer(): BelongsToThrough + public function vendorCustomer(): \Znck\Eloquent\Relations\BelongsToThrough { return $this->belongsToThrough( VendorCustomer::class, @@ -138,7 +138,7 @@ class Comment extends Model { use \Znck\Eloquent\Traits\BelongsToThrough; - public function grandparent() + public function grandparent(): \Znck\Eloquent\Relations\BelongsToThrough { return $this->belongsToThrough( Comment::class, @@ -167,7 +167,7 @@ class Comment extends Model { use \Znck\Eloquent\Traits\BelongsToThrough; - public function country() + public function country(): \Znck\Eloquent\Relations\BelongsToThrough { return $this->belongsToThrough(Country::class, [User::class, Post::class]) ->withTrashed('users.deleted_at');