Skip to content

Commit

Permalink
Improve README
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Jul 15, 2024
1 parent 45c7701 commit 361f47d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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]);
}
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 361f47d

Please sign in to comment.