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

Exception when creating a new user #3

Closed
romerpt opened this issue Mar 9, 2024 · 2 comments
Closed

Exception when creating a new user #3

romerpt opened this issue Mar 9, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@romerpt
Copy link

romerpt commented Mar 9, 2024

Hi there,

First, nice job on the starter kit.

So I have found that when trying to create a new user I'm getting the below exception.

I currently running on php 8.3.3.

ulaa_rowwkEJKYR

Thanks

@riodwanto
Copy link
Owner

Hi @romerpt , you can replace existing relationship & options with: ->relationship('roles', 'name')

The final code should look like this:

...
Select::make('roles')->label('Role')
                    ->relationship('roles', 'name')
                    ->native(false)
...

@riodwanto riodwanto self-assigned this Mar 9, 2024
@riodwanto riodwanto added the bug Something isn't working label Mar 9, 2024
@romerpt
Copy link
Author

romerpt commented Mar 9, 2024

Hi,

I have done that before to make it work.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants