damms005
damms005
FFilament
Created by damms005 on 1/30/2024 in #❓┊help
How to fix login redirect loop
5 replies
FFilament
Created by damms005 on 1/30/2024 in #❓┊help
How to fix login redirect loop
It does not help running optimize:clear
5 replies
FFilament
Created by damms005 on 1/30/2024 in #❓┊help
How to fix login redirect loop
This is the panel service provider (relevant code only)
<?php

namespace App\Providers\Filament;

class CustomerBackendPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->id('customer-backend')
->path('customer-backend')
->registration(Register::class)
->emailVerification()
->login()
->profile()
->passwordReset()
->colors([
'primary' => Color::Green,
])
->navigationGroups([...])
->discoverResources(in: app_path('Filament/CustomerBackend/Resources'), for: 'App\\Filament\\CustomerBackend\\Resources')
->discoverPages(in: app_path('Filament/CustomerBackend/Pages'), for: 'App\\Filament\\CustomerBackend\\Pages')
->pages([
Pages\Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/CustomerBackend/Widgets'), for: 'App\\Filament\\CustomerBackend\\Widgets')
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
Authenticate::class,
])
->tenant(Customer::class, slugAttribute: 'slug')
->tenantMiddleware([
ConfirmActiveSubscription::class,
], isPersistent: true)
->spa();
}
}
<?php

namespace App\Providers\Filament;

class CustomerBackendPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->id('customer-backend')
->path('customer-backend')
->registration(Register::class)
->emailVerification()
->login()
->profile()
->passwordReset()
->colors([
'primary' => Color::Green,
])
->navigationGroups([...])
->discoverResources(in: app_path('Filament/CustomerBackend/Resources'), for: 'App\\Filament\\CustomerBackend\\Resources')
->discoverPages(in: app_path('Filament/CustomerBackend/Pages'), for: 'App\\Filament\\CustomerBackend\\Pages')
->pages([
Pages\Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/CustomerBackend/Widgets'), for: 'App\\Filament\\CustomerBackend\\Widgets')
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
Authenticate::class,
])
->tenant(Customer::class, slugAttribute: 'slug')
->tenantMiddleware([
ConfirmActiveSubscription::class,
], isPersistent: true)
->spa();
}
}
5 replies
FFilament
Created by damms005 on 1/25/2024 in #❓┊help
How to prevent accidental data leak
Yeah I mean the whole point is my fault in forgetting to consider auth for newly added resources If I didn't forget that, I definitely would have added policy and then perhaps a test. I was thinking about something that drop-kicks me whenever I forget something like that; similar to what Model::preventLazyLoading() when one forgets to eager-load relationships
6 replies
FFilament
Created by damms005 on 11/25/2023 in #❓┊help
How to create custom filament page that is accessible to guests?
Oh. It wasn't working before when I tried it previously because I extended Filament\Resources\Pages\Page instead of Filament\Pages\Page. Thanks!
8 replies
FFilament
Created by damms005 on 11/25/2023 in #❓┊help
How to create custom filament page that is accessible to guests?
I tried that already doesn't work. Gave some resource error. I'll send the error in a minute
8 replies
FFilament
Created by damms005 on 11/25/2023 in #❓┊help
How to create custom filament page that is accessible to guests?
It's paid access so not useful for me; but thank you. I really appreciate
8 replies
FFilament
Created by damms005 on 10/26/2023 in #❓┊help
How do I dynamically create table columns in my admin panel?
But I think it is doable. Will be a fun feature to play hack if allowed into the framework. columns(array...) currently accept only array of table columns. The new feature will simply allow closure columns(array... | callable...) and the callable will return array of table columns. Flexible like forms, preserves the behavior via different APIs.
12 replies
FFilament
Created by damms005 on 10/26/2023 in #❓┊help
How do I dynamically create table columns in my admin panel?
I understand your point. Thanks man
12 replies
FFilament
Created by damms005 on 10/26/2023 in #❓┊help
How do I dynamically create table columns in my admin panel?
But how do I get access to the $record so I can inspect and define columns based on the row value?
12 replies
FFilament
Created by damms005 on 10/26/2023 in #❓┊help
How do I dynamically create table columns in my admin panel?
I checked the table API and can't find anything to help me with this. The only option seems to be custom column. This feature is going to be similar to the form schema API that accepts a closure. This allows for dynamically setting form components at runtime. Tables' columns seems to be a good candidate for this, unless I am missing something. Is a PR acceptable for this?
12 replies
FFilament
Created by damms005 on 7/21/2023 in #❓┊help
How do I assign middleware to a Page or Resource?
@zepfietje @Dan Harrin it seems no one can explain this part of the doc that I cited above. I'm unable to understand it too. That's why I posted the question. Can you help me understand it, please?
2 replies
FFilament
Created by damms005 on 7/9/2023 in #❓┊help
How to visit Filament dashboard from the central domain after integrating stancl/tenancy
Oh. Sorry about that
6 replies
FFilament
Created by damms005 on 7/9/2023 in #❓┊help
How to visit Filament dashboard from the central domain after integrating stancl/tenancy
@Dan Harrin @zepfietje Please is this kind of integration possible with v3. I can delay shipping feature till 20th really. Or not, I can figure another way (that does not involve stancl tenant and central admin to have access to Filament). Advise, please.
6 replies
FFilament
Created by damms005 on 4/15/2023 in #❓┊help
How to get uploaded file in page action
Thanks thanks
4 replies
FFilament
Created by damms005 on 3/29/2023 in #❓┊help
Resource policy issue
Thank you Krekas
8 replies
FFilament
Created by damms005 on 3/29/2023 in #❓┊help
Resource policy issue
Is there any way I can limit checks to only the required policy? I want members of staff to be able to view and edit own staff resource, not viewAny (i.e. not view list of members of staff)
8 replies
FFilament
Created by damms005 on 3/29/2023 in #❓┊help
Resource policy issue
Alrighty. Thanks Dan
8 replies
FFilament
Created by damms005 on 3/23/2023 in #❓┊help
How can I get changes to resource form?
@Dan Harrin One other suggestion is to update closure customization to sections (https://filamentphp.com/docs/2.x/forms/advanced#using-closure-customization), such that relevant sections can be linked in the hooks/lifecylce docs where they are useful to. Again, I can contribute this if found needful.
21 replies
FFilament
Created by damms005 on 3/23/2023 in #❓┊help
How can I get changes to resource form?
I understand it is in appreciation of the team's effort that make you source-dive when necessary. However, you should understand that it is in the same spirit that I volunteered above to contribute to such documentation should my suggestion be found needful
21 replies