You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to access the /admin/accounts page, I get the following error:
Filament\Support\Services\RelationshipJoiner::prepareQueryForNoConstraints():
Argument #1 ($relationship) must be of type Illuminate\Database\Eloquent\Relations\Relation, null given,
called in /var/www/erp.comingsoon.uz/vendor/filament/forms/src/Components/Select.php on line 767
How to reproduce the bug
Installed the plugins in the following order: tomatophp/filament-accounts + tomatophp/filament-saas-panel
Registered the plugins in FilamentPanelProvider as shown in the code snippet above.
Attempted to access /admin/accounts.
Package Version
1
PHP Version
8.3
Laravel Version
11
Which operating systems does with happen with?
No response
Notes
No response
The text was updated successfully, but these errors were encountered:
Full Plugin Registration
When all FilamentSaasTeamsPlugin methods are enabled, I get the following error when navigating to /admin/accounts:
Filament\Support\Services\RelationshipJoiner::prepareQueryForNoConstraints():
Argument #1 ($relationship) must be of type Illuminate\Database\Eloquent\Relations\Relation, null given,
called in /Users/nobody1/Herd/Control/vendor/filament/forms/src/Components/Select.php on line 767
Narrowing Down the Problem
->allowAccountTeamTableAction():
Causes the following error when clicking the action button: Call to a member function pluck() on null
->allowAccountTeamFilter():
Causes the main error:
Filament\Support\Services\RelationshipJoiner::prepareQueryForNoConstraints():
Argument #1 ($relationship) must be of type Illuminate\Database\Eloquent\Relations\Relation, null given,
called in /Users/nobody1/Herd/Control/vendor/filament/forms/src/Components/Select.php on line 767
->allowAccountTeamTableColumn():
Causes the following error:
BadMethodCallException: Call to undefined method TomatoPHP\FilamentAccounts\Models\Account::teams()
->allowAccountTeamFormComponent():
Causes the following error: Call to a member function getResults() on null
Possible Cause:
The issue seems to stem from the fact that FilamentSaasTeamsPlugin expects certain relationships or methods (teams, currentTeam, etc.) to be defined in the Account model. However, these relationships do not exist by default in the filament-accounts plugin.
It is also worth noting that I installed filament-accounts first and then added filament-saas-panel. This order of installation might have caused some misconfigurations or missing relationships.
Suggestions or Questions:
Are there any specific relationships (teams, currentTeam, etc.) that I need to manually add to the Account model to make the plugins compatible?
Should the order of installation for filament-accounts and filament-saas-panel matter?
Could there be missing migrations or model changes required for the two plugins to integrate correctly?
What happened?
Hello,
I encountered multiple issues when combining the following two plugins:
When I try to access the /admin/accounts page, I get the following error:
How to reproduce the bug
Package Version
1
PHP Version
8.3
Laravel Version
11
Which operating systems does with happen with?
No response
Notes
No response
The text was updated successfully, but these errors were encountered: