Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gives the option to always save 'null' to the 'team_id' column #83

Closed
wants to merge 1 commit into from

Conversation

moedayraki
Copy link

Gives the option in the configuration to always save the team_id as null in order for people to see all logged emails and not filter them by teams. (This works perfectly for admin)

Copy link

what-the-diff bot commented Nov 28, 2024

🌈 PR Summary

  • Beautiful Upgrade to README.md 😺
    We slid in a fancy new option named 'persist_team_id' => true, which gives you a magical power to decide whether you want to remember the team IDs or not.

  • Sprinkled some Magic in config/filament-email.php
    Stirred up 'persist_team_id' => true into filament-email's recipe! Now you can decide how you want your filament emails cooked. Want to keep team IDs in it? You got it!

  • Savvy Swaps in FilamentEmailLogger.php 🔍🔁

    • Swapped out the boring direct access of Filament::getTenant()?->id with a shiny new private method getTeamId(). Think of it as a cool helper which fetches your team ID based on your choice of persist_team_id.
    • Upgraded the way our models are created to use our wonderful helper, getTeamId() for setting the 'team_id'.
    • Brought in a super cool helper named getTeamId(). Like a loyal knight, it returns the team ID when persist_team_id is true; otherwise, it cools down and returns null.

@moedayraki moedayraki closed this Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant