Skip to content

Commit

Permalink
Improve README
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed May 1, 2024
1 parent ef984f3 commit ba2ba64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ class Post extends Model

public function commentReplies()
{
return $this->hasManyDeep(Comment::class, ['App\Comment as alias'], [null, 'parent_id']);
return $this->hasManyDeep(Comment::class, [Comment::class . ' as alias'], [null, 'parent_id']);
}
}
```
Expand All @@ -570,7 +570,7 @@ class User extends Model

public function permissions()
{
return $this->hasManyDeep(Permission::class, ['App\RoleUser as alias', Role::class]);
return $this->hasManyDeep(Permission::class, [RoleUser::class . ' as alias', Role::class]);
}
}

Expand Down

0 comments on commit ba2ba64

Please sign in to comment.