NolanN
Default option for select filter
I'm trying to set the default option in a select filter but it doesn't seem to apply.
Using only
default()
also fails to set a default selection. And I don't want to use selectablePlaceholder(false)
because I do have a case where all options need to be shown in the table.4 replies
Can I show records from 2 relationship in one relation manager?
I have a
Source
model that has fields
and definition
relationships. The definition
relationship also has a fields
relationship. The Source
model can return a list of validation rules that are generated by get the fields
from the definition
and then overrides any rules that have a title that match a field
related to the Source
. What I want is to have a relation manager on the SourceResource
that can show all the fields
related to the definition
in a disabled state and the fields
related to the Source
in an enabled state. Is this possible to in a relation manager? Do I need to create a custom page possibly?5 replies
Relating form tabs to specific model instances
Hey all, I've got a model to store integrations with other services. I'd like to use form tabs for each integration type that is available. Is there a way to essentially make each tab it's own form that is directly related to a model instance? I'm sure I could build this by modifying the data before creating an integration but I am curious if there is a built in way to do something like this.
4 replies
Database notifications not showing in panel
I added database notifications to one of my panels and I see the icon and I get the slide over. I also configured a toDatabase method on the Laravel notification I had created. I see it getting stored in the DB and it is linked to the correct model but nothing is showing in the user interface. Any ideas?
12 replies
Getting a 404 when trying to register a tenant
I'm trying to enable the tenant registration feature in one of my panels but I'm getting a 404 when I try to access the page:
No query results for model [App\Models\Customer] new
Here is the code from my panel:
The route is listed as expected:
GET|HEAD app/new .................... filament.customer.tenant.registration › App\Filament\Customer\Pages\RegisterCustomer
Any idea why there is a query being made for this customer model?16 replies
Branding a panel with tenant info
I was hoping to use a tenants name, logo, color, etc for the branding of a panel but the tenant hasn't been identified by that point. I was hoping that the new multi-tenant domain updates might make that possible but it doesn't appear so. Is there any way to do this currently?
9 replies
Display plain text token in modal after creation
I have a model which generates a Sanctum token after the model's
created
event fires. However, I want to show the plain text token to the user in a modal. Is there any way to do this currently?8 replies
Getting a 419 error when trying to download export
I wanted to give exporting a try so I ran the necessary migrations and created a very simple export. The export completed as expected but when I click the download link in the notification panel, I get a 419 error.
3 replies
Add tenant scope only to child resource
I'm building a multi-tenant app which has a resource that does not need to be scoped to the tenant. However, on the table I want to list counts of a related resource that should be scoped to the tenant. Is there a way to have a parent without a scope and a child with the tenant scope?
6 replies
Redirect to a url after action
I'm trying to create an action that will allow a user to create a new Stripe Connect account. In that workflow, an account is created first and then an account link is created and the user is redirected to complete their Stripe onboarding. I'm trying to do this utilizing the the
action
and url
methods from the Action
but I'm immediately redirected to the url when I click the button8 replies
Extra sessions being created when clicking an action button
I'm running into an issue where additional sessions are being creating when taking simple actions in my app. For example, I have a
Source
resource with a list page. I've added a simple action:
When I click on the action, there is a single call in the network tab and a new session is created in storage/framework/sessions
. Without adding any text to the input, I click away and 2 more network calls are made, each producing another session.
Clearly something is misconfigured with my setup. I am using stancl/tenancy
for custom domain support and I'm using a panel on a subdomain in this example.17 replies