Silverhand
Silverhand
FFilament
Created by Silverhand on 7/23/2024 in #❓┊help
How do I create a non-tenancy page and route with a multi-tenancy configuration?
I'm using the standard Filament multi-tenancy feature with a many-to-many relationship.  I want to make a route and a page that can be accessed by all tenants, for example, /admin/announcements, where the routing with multi-tenancy comes with /admin/{tenantKey}/xxx.  I appreciate any help. Thanks.
9 replies
FFilament
Created by Silverhand on 6/6/2024 in #❓┊help
Form with deeper relationship
Hi everyone, Is it possible to have a form relationship using a deeper model relationship, such as: Applicant -> User -> PersonalInformation I want to create a form for PersonalInformation model in ApplicantResource. I've tried something like:
Grid::make()
->relationship('user.personalInformation')
->schema([
TextInput::make('phone_number')
])
Grid::make()
->relationship('user.personalInformation')
->schema([
TextInput::make('phone_number')
])
It doesn't work. Thank you!
7 replies
FFilament
Created by Silverhand on 6/3/2024 in #❓┊help
Show using modals, but edit and delete using a normal page
Hi guys, I'm new in Filament. I have a filament resource that I want to display with different behavior, so on detail/show it's using modal but on edit and create using a page. How do I do that without removing the edit and create route on the getPages()?
public static function getPages(): array
{
return [
'index' => Pages\ListApplicants::route('/'),
'edit' => Pages\EditApplicant::route('/{record}/edit'),
'create' => Pages\CreateApplicant::route('/create'),
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListApplicants::route('/'),
'edit' => Pages\EditApplicant::route('/{record}/edit'),
'create' => Pages\CreateApplicant::route('/create'),
];
}
If I remove them, the modal works, but the form also using modal, I want to keep the modal on the show only but keep the form for creating and editing using page.
18 replies