szucs996#1
szucs996#1
FFilament
Created by szucs996#1 on 6/20/2024 in #❓┊help
Tenancy profile and cluster
Hi there, I have a tenancy based app, which in my case is the CompanyModel. I would like to achieve that edit profile page to be a cluster. Is it possible to achieve it somehow? Currently the url is /admin/{company-name}/profile/companies/{company-name} instead of just having /admin/profile/ . Can you assist please?
5 replies
FFilament
Created by szucs996#1 on 4/24/2024 in #❓┊help
Dynamic Select field default value HELP PLEASE <3
Hi, I have the following code:
Select::make('organisation_id')
->relationship('organisations','label')
->live()
->required()
->afterStateUpdated(function($state,$set,$component,$livewire){
if($state) {
$default=Organisation::find($state)->defaultInvoiceRecipient;
if ($default) {
$set('invoice_recipient_id', $default->id);
}
}

}),
Select::make('invoice_recipient_id')
->visible(fn($get)=>$get('organisation_id'))
->required()
->relationship('invoiceRecipient', 'company_entity',function ($query,$get,$set){
if($get('organisation_id')){
$query->where('organisation_id',$get('organisation_id'));
}
})
Select::make('organisation_id')
->relationship('organisations','label')
->live()
->required()
->afterStateUpdated(function($state,$set,$component,$livewire){
if($state) {
$default=Organisation::find($state)->defaultInvoiceRecipient;
if ($default) {
$set('invoice_recipient_id', $default->id);
}
}

}),
Select::make('invoice_recipient_id')
->visible(fn($get)=>$get('organisation_id'))
->required()
->relationship('invoiceRecipient', 'company_entity',function ($query,$get,$set){
if($get('organisation_id')){
$query->where('organisation_id',$get('organisation_id'));
}
})
When you select the organisation_id should automatically select the default value of the invoice_recipient_id but unfortunately doesn't. Can you assist please?
5 replies
FFilament
Created by szucs996#1 on 4/22/2024 in #❓┊help
Is it a bug or it's a normal behavior?
No description
2 replies
FFilament
Created by szucs996#1 on 12/8/2023 in #❓┊help
distinct() and fixIndistinctState() method doesn't exists
No description
6 replies
FFilament
Created by szucs996#1 on 12/4/2023 in #❓┊help
Not loading labels
No description
7 replies
FFilament
Created by szucs996#1 on 7/31/2023 in #❓┊help
How to force dark Mode?
Hello, how I can force dark mode please?
5 replies