From 6b5007877c0f1e607eabf2d5fdda39ab388170cf Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Mon, 21 Sep 2020 15:56:52 +0200 Subject: [PATCH] Update teams.md --- 1.x/features/teams.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/1.x/features/teams.md b/1.x/features/teams.md index 4031249..5c68a02 100644 --- a/1.x/features/teams.md +++ b/1.x/features/teams.md @@ -89,6 +89,12 @@ Team member addition logic may be customized by modifying the `App\Actions\Jetst This action is responsible for validating that the user can actually be added to the team and then adding the user to the team. You are free to customize this action based on the needs of your particular application. +You can retrieve all users for a specific team with the `allUsers` method: + +```php +$users = $team->allUsers(); +``` + ### Roles / Permissions Each team member added to a team may be assigned a given role, and each role is assigned a set of permissions. Role permissions are defined in your application's `JetstreamServiceProvider` using the `Jetstream::role` method. This method accepts a "slug" for the role, a user-friendly role name, the role permissions, and a description of the role. This information will be used to display the role within the team member management view: