rahat392
rahat392
FFilament
Created by agaitan026 on 9/28/2024 in #❓┊help
two different panel with roles
$panel
->default()
->id('backoffice')
->path('backoffice')
->login()
->colors([
'primary' => Color::Amber,
])
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
->pages([
Pages\Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets')
->widgets([
Widgets\AccountWidget::class,
Widgets\FilamentInfoWidget::class,
])
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
Authenticate::class,
]);
$panel
->default()
->id('backoffice')
->path('backoffice')
->login()
->colors([
'primary' => Color::Amber,
])
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
->pages([
Pages\Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets')
->widgets([
Widgets\AccountWidget::class,
Widgets\FilamentInfoWidget::class,
])
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
Authenticate::class,
]);
12 replies
FFilament
Created by agaitan026 on 9/28/2024 in #❓┊help
two different panel with roles
There is a method called authMiddleware that is called when someone is visiting the panel you can put your logic there...
12 replies
FFilament
Created by rahat392 on 9/14/2024 in #❓┊help
Are thre any livewire or alpine hooks that is fired after the the DOM swap has happened.
I will try it soon
5 replies
FFilament
Created by rahat392 on 9/14/2024 in #❓┊help
Are thre any livewire or alpine hooks that is fired after the the DOM swap has happened.
thankyou very much for your answers..
5 replies
FFilament
Created by ehbfa on 6/7/2024 in #❓┊help
Having viewData with value of another field available
8 replies