> * * @throws AuthorizationException */ public function index(Organization $organization, UserIndexRequest $request): MemberCollection { $this->checkPermission($organization, 'users:view'); $users = $organization->users() ->paginate(); return MemberCollection::make($users); } /** * Invite a placeholder user to become a member of the organization * * @throws AuthorizationException|UserNotPlaceholderApiException */ public function invitePlaceholder(Organization $organization, User $user, Request $request): JsonResponse { $this->checkPermission($organization, 'users:invite-placeholder'); if (! $user->is_placeholder) { throw new UserNotPlaceholderApiException(); } app(InvitesTeamMembers::class)->invite( $request->user(), $organization, $user->email, 'employee' ); return response()->json(null, 204); } }