Closed MaartenJC closed 1 month ago
Override the authGuard
on the knowledge base panel:
https://github.com/GuavaCZ/filament-knowledge-base?tab=readme-ov-file#customize-the-knowledge-base-panel
Thanks for your response. This is now in my AppServiceProvider:
KnowledgeBasePanel::configureUsing(
fn (KnowledgeBasePanel $panel) => $panel
->authGuard('frontend')
->viteTheme('resources/css/filament/admin/theme.css') // your filament vite theme path here
);
Still the same error.
Hmm, where are you calling the KnowledgeBasePanel::configureUsing
method? Are you calling it from the register method of your service provider?
Tbh I didn't test it with any other auth guards since I never needed it, so I'm not sure what's causing it. But since you have access to the complete knowledge base panel, I don't see why you couldn't configure the auth guard this way.
I was calling it from the boot method, changed it to the register method. Now it works! Thanks for your support. Looks like a great plugin!
Thanks! Glad I could help.
What happened?
After installation of this plugin the Filament page gives an error: Auth guard [web] is not defined.
How to reproduce the bug
i do not use the default guard 'web' but a custom frontend and backend guard.
Package Version
1.10.1
PHP Version
8.2.23
Laravel Version
10.48.22
Which operating systems does with happen with?
macOS
Notes
No response