Error with implements FilamentUser and HasPanelShield
gjimenez-gc opened this issue · 1 comments
gjimenez-gc commented
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 * from
roles 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?
nnnnnnnngu commented
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.