filament-authentication
filament-authentication copied to clipboard
Error on new user
Getting this error when pressing the "new user" button in the user screen.
Filament\Support\Services\RelationshipJoiner::prepareQueryForNoConstraints(): Argument #1 ($relationship) must be of type Illuminate\Database\Eloquent\Relations\Relation, null given, called in C:\Websites\SDA2.0\SDA\vendor\filament\forms\src\Components\Select.php on line 773
When pressing "view" or "edit" in the user list this error comes: Call to a member function getResults() on null
PHP 8.3.2 10.43.0
Investigating. thank you
same error :)
Have you setup spatie roles and permissions traits in your user model?
Hi @phpsa, yes those are added:
Based on the greyed out, looks like you have not put the use inside the class aswell?
I managed to fix most issues with your suggestion above, many thanks for that! Only one issue remaining and thats when trying to view or edit a role:
I managed to fix most issues with your suggestion above, many thanks for that! Only one issue remaining and thats when trying to view or edit a role:
Same Issue
For this issue, is there a repo i can look at - I am unable to replicate this issue.