Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hasen39's avatar

using custom guard in laravel voyager

hi guys i am using voyager and i use custom guard to use custom guard i use admins table and i change user_roles table to admin_roles but when i try to login i get this error

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dagu_ad.user_roles' doesn't exist (SQL: select roles.*, user_roles.user_id as pivot_user_id, user_roles.role_id as pivot_role_id from roles inner join user_roles on roles.id = user_roles.role_id where user_roles.user_id in (1))

what shoud i do ? thank you

0 likes
1 reply

Please or to participate in this conversation.