filament/filament
v3.2.124
v11.32.0
v3.5.12
PHP 8.3.3
When we have multiple teams, filament always does a check of the policies for every team instead of only for the current team. In large applications with lots of teams this can slow down the application a bit.
So for example, here I have a simple filament dashboard with only one Resource "Posts". If I have one Team, this is the output for the Gates in debugbar.
When registering a new Team, it loads the policies (of the navigation?) multiple times.
And so on
It should only load the correct policies once.
Clone the repository, create a couple of teams and check the debugbar. Everytime you add a new team, the "Gates" will increase in debugbar.
https://github.com/wannesmatthys/filament-gates-reproduction
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too