phpsa / filament-authentication

MIT License
108 stars 23 forks source link

Remove with roles elequent query #5

Closed FalconNL93 closed 2 years ago

FalconNL93 commented 2 years ago

While editing a user with a role, the following error occours

Illuminate \ Database \ QueryException
SQLSTATE[HY093]: Invalid parameter number
select `name`, `id` from `roles` where `id` in (1)

Removing

src/Resources/UserResource.php: 147

public static function getEloquentQuery(): Builder
{
    return parent::getEloquentQuery()->with('roles');
}

And the edit page of a user works fine.

Versions
Laravel Version 9.10.1
Laravel Locale en

Laravel Config Cached false
App Debug true
App Env local
Php Version 8.1.5
phpsa commented 2 years ago

Thank you. Will look into and release a patched version soon

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 1.1.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: