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

Error with implements FilamentUser and HasPanelShield #400

Open
gjimenez-gc opened this issue Jul 1, 2024 · 1 comment
Open

Error with implements FilamentUser and HasPanelShield #400

gjimenez-gc opened this issue Jul 1, 2024 · 1 comment

Comments

@gjimenez-gc
Copy link

gjimenez-gc commented Jul 1, 2024

Hi,

Been trying to setup a HasPanelShield implements FilamentUser to my User resource but every time I delete the db and try to run the migration from start I'm getting this error:

SQLSTATE[HY000] [1049] Unknown database 'laravelfilament02' (Connection: mysql, SQL: select * fromroles where (name = panel_user) limit 1)

So when the db does not exists and I'm using implements FilamentUser its trying to get the roles, thus making the build fail, I'm missing something?

image

@nnnnnnnngu
Copy link

set panel user enabled to false

'panel_user' => [
        'enabled' => false,
        'name' => 'panel_user',
    ],

in config/filament-shield.php

run migration, run shield:install and enable panel_user after that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants