nuovo2023
Multi-tenancy title
Hello,
I am using Multi-Tenancy, it's going great so far.
I need to differentiate browser tabs by showing the current tenant in the title, for instance:
Resource X - APP NAME - Company A
Resource Y - APP NAME - Company B
How can I achieve that without adding the code below to every resource I have?
6 replies
Replicating and successRedirectUrl
Hello,
I enabled multi-tenancy and I am trying to redirect to the edit form after replicating a record, I listed the routes and the one I need looks like this:
GET|HEAD company/{tenant}/business-hours/{record}/edit ..................................................................................... filament.company.resources.business-hours.edit
I'd beed trying to redirect to the edit form using this piece of code:
->successRedirectUrl(fn($replica) => route('business-hours.edit', ['business-hours' => $replica->id])),
But I'm getting a Route not defined, Help please.
3 replies
Send Model to widget
Hello everyone, I need some help with this one.
I made a custom page, that will have widgets, but I'm trying to reuse the same widget, and add one per client, that's not the problem. the problem is, How can I send a model to a widget in order to show relevant data?
protected function getHeaderWidgets(): array
{
return [
CustomerStatus::make() // 1,
CustomerStatus::make() // 2,
];
}
The widget in mention is one based on BaseWidget, with a table in it.
Thanks for the help.
4 replies