oliverbusk
Explore posts from serversFilament Table Text Column action not firing
I have a Filament table widget, in which I do a semi complex query to fetch some grouped data:
This will yield a table like this:
And the number in the
Total Jobs
column will be clickable.
However, when I click the number, nothing happens. If I check the console -> network requests, I see that an update
request is indeed sent, but still - nothing happens. I would expect the action to open a modal, with the content from my custom blade view.
What am I doing wrong?2 replies
Grouped row in Filament together with action
I have the following table in Filament:
If I dump the
$record
from the text column's state
function, it successfully returns all the original_ids
from my query comma seperated (2,4,5). However, if I dump the $record
from the action, it only takes the first one: original_ids => 2
How can I get all the original_ids
in the action for my grouped record?2 replies
Table actions not firing
I have a table function in a custom Filament page:
I have initialized the page like this:
Table:
Then, the blade view is looking like this:
When I try to trigger the
view_incentive_details
, I would for now, expect that it would just dd
the $record
, however, when I click it, a spinner is just shown briefly:
!image7 replies
Conditionally hiding the sidebar on specific pages/resources
Hi.
Is it possible to conditionally collapse the sidebar on specific pages? I have a few pages where the main content is very dense, so I would like to have the extra screen real estate.
4 replies
Conditionally hide a section
Hi.
Is it possible to conditionally hide a Section, based on another value on the form?
E.g.:
The section
Receivable Details
is hidden on page load, but I want to show/hide it based on the toggle value from receivable
2 replies
Tenant with an extra layer of ownership - uploading documents
Hi.
I have set up Filament with multitenancy, and I am using a classic "Team" model. I have one more layer below a team, that I call buckets:
A team can have many buckets, and a bucket can belong to one team.
Then, under a bucket, the user can upload many documents, meaning that: a bucket can have many documents, and a document can belong to one bucket.
Now, I have set up a new resource called
DocumentResource
, but I am simply unable to figure out how I can upload a simple document via a header action, since the document should belong to a bucket, and not to a team directly.
In my App
panel, I have specified this:
Then, on the DocumentResource
I have set a relationship:
Then, under the ListDocuments
page, I would like to have the "Upload Document" modal:
When I upload, it fails, since Filament is looking for a team_id
on the documents
table. But there is none, only a bucket_id
9 replies
Redirect to new slug after updating tenant name
Hi.
I have the below EditTenantProfile set up just like the docs:
Now, I have a
slug
column on my Team
model, that is automatically set based on the name:
Now, currently, when updating the name of the team, it will result in a 404 page (since the slug is now updated, and thus the old slug no longer exists).
I added this method on the EditTeamProfile.php
, but I am unsure if there are other easier ways of doing this?
2 replies
Route [filament.app.auth.logout] not defined.
Hi.
I am trying to configure the main path for a panel I have created as described here: https://filamentphp.com/docs/3.x/panels/configuration#changing-the-path.
It should be accessible from "/" instead of "/app":
However, this gives me the following error:
Route [filament.app.auth.logout] not defined.Please see the stacktrace: https://flareapp.io/share/oPR0y9K5
4 replies