alexanderkroneis
Use Accessor in Global Search
Hi,
the documentation says that we can use an accessor to feed the global search (see https://filamentphp.com/docs/3.x/panels/resources/getting-started#record-titles). I just tried that by using
name
as $recordTitleAttribute
and it queries the table and does not use the accessor. Is there something missing in the docs or is there a bug?
12 replies
Child Relationship of Tenant Model
Hi, I am currently working on a simple tenancy application. The tenant has some relationships, e.g.
customers
or users
. The Customer model has a relation to projects
. I can't figure out, how to implement this child-relationship to Tenant.
That's my current approach
which gives me the following error:
Which is a valid error. But how can I instruct Filament to go into the customer model and look for the tenant over there?2 replies
Different UI for Create/Edit and View?
Hi,
this is more of a discussion than asking for specific help since I'm wondering:
Can the create/edit form be different to the view? 🤔 E.g. a wizard for create/edit and a total different UI for the view?
5 replies
Can we summarize using Sushi?
Hi,
can we summarize a table when using Sushi?
When I add
I get this error: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '":memory:"."booking_statistics") as
booking_statistics
' at line 14 replies
How to connect multiple models of the same type?
Hi,
I'm trying to implement a family structure in my application. I have n Customers who are related to each other (Siblings, Parents, all that stuff). I'm thinking about adding a
family_id
to customers
table and creating an own families
table.
What would the best approach in Filament be?5 replies
Undefined array key "large_url"
Hi,
I just added Curator to my application and receiving this exception:
https://flareapp.io/share/q5YwLzoP
5 replies
Curator Plugin: What's required for a n:m-migration?
Hi,
I just installed the Curator Plugin of @awcodes and I'm wondering what's the schema of a many-to-many migration? I can't find it within the docs and I am receiving the 3rd exception now, that a column is missing.
20 replies
Dispatching Event after Action
Hi guys,
I added a
PriceAssistantAction
class to my application which is used at a specific tab in my ContractResource
while editing a contract. The action itself is working perfectly fine, I just noticed one issue:
When I call $livewire->dispatch('$refresh')
in after()
, the application does not refresh the user interface.57 replies
Conditional Select Field
Hi, a couple Select fields should be populated and/or disabled based on other fields in my application.
E.g. I only want to display rooms, which does not have been associated to a season yet.
The select field is not repopulated, any ideas?
3 replies
Using Select with a BelongsToMany relation
Hi,
I recognised a weird issue in an appliation of mine. I am using a
Select
component to assign Rooms
to a Contract
. They are stored in a contract_room
table since it's a many-to-many relationship.
When we take a look into the code, it seems like n:m is supported by Select
.56 replies
Billing redirects after subscribing
Hi,
I added Spark to my Filament application and it seems like the URL is not correct. I added multi tenancy to my App Panel, this is also where I added Spark. I'd expect the URL to be something like
http://localhost/app/billing
, but it's localhost/billing
and after subscribing I get redirected to http://localhost/billing?checkout=subscription_started
which returns 404.
How do I prevent the 404 and where can I define that the billing route should be in app
.5 replies