damms005
Any way to toggle first in client-side?
Toggle column is absolutely awesome for what it does.
However, because it is not entangled, it does not have a good UX when working with slow internet.
How can I improve this please? (e.g. let the toggle happen client side while server roundtrip happen background)
2 replies
How to prevent dashboard widget filter persistence across page refresh
When filtering dashboard widgets, the filter is persisted across page refresh.
How do I disable this so that the filtering refreshes on page refresh?
2 replies
How to prevent accidental data leak
Filament uses model policies to prevent unauthorized access.
I have had situations where I forgot to add model policies, especially for existing models and I add the resource to Filament.
Maybe the solution is a Laravel thing rather than Filament, but how can I prevent such error?
More specifically: How can I make Filament blow up (throw Exception or something) when a resource is accessed and the underlying model does not have any policy class?
6 replies
How to create custom filament page that is accessible to guests?
I created a new page using the create page command but when I access it browser redirects to login page.
How can I prevent this and get the page rendered so guests can access without need to login?
8 replies
How do I assign middleware to a Page or Resource?
I do come across this concept of Filament middlewares many times. Most recently, it is mentioned in the beta docs like this:
Property signature changes
Resource classes and all page classes, including resource pages, custom pages, settings pages, and dashboard pages:
$middlewares
is now $routeMiddleware
This gives the impression that middlewares can be assigned directly to pages or resources. However, this is not documented anywhere in Filament how to achieve this.
Can someone please point me to the relevant parts of the docs, please?2 replies
How to visit Filament dashboard from the central domain after integrating stancl/tenancy
I have setup stancl/tenancy according to the Filament docs and it works well together.
However, I am now unable to visit Filament from the central domain, with error:
I understand the error because I set up stancl/tenancy to to identify tenants by subdomain (which, like I said, works well).
It seems that including
InitializeTenancyByDomain::class
in Filament's middleware.base
config entry makes the whole of Filament to be a tenant thing.
Please, what are my options for allowing Cetral domain admin to visit Filament while tenants can still visit Filament?6 replies
What options do I have to render html in notifications?
I'm taking about purely backend, not frontend js notifications. Per the usual Filament's
Notification::make(...)->body(...)
If it's not supported yet, any plan to support it or PR accepted? cc @Dan Harrin3 replies
How to get uploaded file in page action
In my List page, I have a page action with a form that contains a
FileUpload::make('test-file')
. In the ->action(fn (array $data)...)
I need to get the uploaded file. According to the docs, I should do $data['test-file']
but that only contained a string (I think the internal livewire temp value for the file). How do I get the uploaded file in the $data
?
Currently, I do something like:
Is there a better way?4 replies
How do I get the "create" routes for simple-modal-resources in testing?
While this is easy for normal pages (see https://filamentphp.com/docs/2.x/admin/testing#routing--render-1), I am unable to figure out how to test "create" of #Simple (modal) resources - https://filamentphp.com/docs/2.x/admin/resources/getting-started#simple-modal-resources
3 replies