text: const Invite = use('App/Models/Invite');
  
  /**
   * Resourceful controller for interacting with invites
   */
  class InviteController {
    /**
     * Create/save a new invite.
     * POST invites
     */
    async store({ request, auth }) {
      const invites = request.input('invites');
  
      const data = invites.map((email) => ({
        email,
        user_id: auth.user.id,
        team_id: request.team.id,
      }));
  
      await Invite.createMany(data);
    }
  }
  
  module.exports = InviteController;
  