F
Filament2mo ago
Steff

CustomersPanelProvider in Breezy? Why Customers and not AdminPanel...

I have a fresh filament project and i wanna configure breezy. First adding the class to your Filament Panel's plugin() But i dont have a CustomersPanelProvider ? Can i use AdminPanelProvider or i have to create a Customer(s)-Panel.? Next ->authGuard('customers'), same questiion.
Solution:
``` BreezyCore::make() ->myProfile( hasAvatars: true, )...
Jump to solution
6 Replies
hyperion-mx
hyperion-mx2mo ago
you can have any panel. the CustomerPanel is an example here is how am using it
class DashboardPanelProvider extends PanelProvider {
........
class DashboardPanelProvider extends PanelProvider {
........
Solution
hyperion-mx
hyperion-mx2mo ago
BreezyCore::make()
->myProfile(
hasAvatars: true,
)
->enableTwoFactorAuthentication()
->enableSanctumTokens(),
BreezyCore::make()
->myProfile(
hasAvatars: true,
)
->enableTwoFactorAuthentication()
->enableSanctumTokens(),
hyperion-mx
hyperion-mx2mo ago
and when I created the new project I used Breeze and when installed it I only used the Breeze API but you can use it anyway you like
Steff
SteffOP2mo ago
Ok, looks good. Got it running. but there are still a few questions left. I first created the EditProfile page (https://laraveldaily.com/post/filament-custom-edit-profile-page-multiple-forms-full-design) because I thought it would be helpful. In the end I had two profile pages edit-profile and my-profile. But with slug: 'edit-profile' it is only one. the ->authGuard('...') is also not needed. ->enableSanctumTokens() leads to class “Laravel\Sanctum\Sanctum” not found. But it works without. Should I install this? Can Breezy also use email code as 2FA?
hyperion-mx
hyperion-mx2mo ago
you dont need enableSanctumTokens() I had it for other functionality so you can remove it for your use case Can Breezy also use email code as 2FA? thats interesting I havnt looked into it yet!
Steff
SteffOP2mo ago
ok, i will look.
Want results from more Discord servers?
Add your server