daisy21
daisy21
FFilament
Created by daisy21 on 10/15/2024 in #❓┊help
APP_URL on multitenancy
im using domain aware tenancy and will handle multiple tenants so i will have like main.domain.com , sub1.domain.com , sub2.domain.com etc what should i add in the env app_url?
2 replies
FFilament
Created by daisy21 on 7/6/2024 in #❓┊help
Form outside panel wont apply some classes
No description
32 replies
FFilament
Created by daisy21 on 5/27/2024 in #❓┊help
MULTITENANCY with subdomain routing for tenant
hi im new to multitenancy and stuff and trying to figure out how to do it , one thing in my mind is now how do i setup things in the server side if im using ubuntu with LAMP or LEMP which is recommended? and or if im using cpanel
3 replies
FFilament
Created by daisy21 on 10/5/2023 in #❓┊help
Table row click to view work in local but on server table doesnt have any link to click at all
No description
18 replies
FFilament
Created by daisy21 on 10/2/2023 in #❓┊help
setting radio default value on form builder not working, but on resource its working
Fieldset::make('Kategori Permohonan')
->schema([
Radio::make('kategori')
->label('')
->reactive()
->options([
'Perorangan' => 'Perorangan',
'Lembaga / Organisasi' => 'Lembaga / Organisasi',
])
->required()
->columnSpan('full')
->inline()
->default('Perorangan'),
])
Fieldset::make('Kategori Permohonan')
->schema([
Radio::make('kategori')
->label('')
->reactive()
->options([
'Perorangan' => 'Perorangan',
'Lembaga / Organisasi' => 'Lembaga / Organisasi',
])
->required()
->columnSpan('full')
->inline()
->default('Perorangan'),
])
2 replies
FFilament
Created by daisy21 on 9/28/2023 in #❓┊help
Custom color on checkbox option
No description
7 replies
FFilament
Created by daisy21 on 9/28/2023 in #❓┊help
Changing Label and Visibility based from radio value
Fieldset::make('Kategori Permohonan')
->schema([
Radio::make('kategori')
->label('')
->options([
'Perorangan' => 'Perorangan',
'Lembaga / Organisasi' => 'Lembaga / Organisasi',
])->required()->columnSpan('full')->inline()->default('Perorangan'),
]),

TextInput::make('nomor_identitas')
->label(function (Closure $get){

if(strcmp($get('kategori'),'Perorangan')){
return (string) "NIK/No.Identitas Pribadi";
}
return (string) "NIK/No.Identitas Pimpinan";
})
->required()
->maxLength(255),
TextInput::make('nama_identitas')
->label(function (Closure $get){

if($get('kategori')==='Perorangan'){
return (string) "Nama Lengkap";
}
return (string) "Nama Lembaga / Organisasi";
})
->required()
->maxLength(255),
FileUpload::make('file_identitas')
->required()
->label(function (Closure $get){

if(strcmp($get('kategori'),'Perorangan')){
return (string) "Upload KTP Pribadi";
}
return (string) "Upload KTP Pimpinan";
})
->enableOpen()
->reactive()
->directory('ktp-pemohon')
->disk('private')->columnSpan('full')
->visible(fn (Closure $get) => strcmp($get('kategori'),'Lembaga / Organisasi'))->columnSpan('full'),

Fieldset::make('Kategori Permohonan')
->schema([
Radio::make('kategori')
->label('')
->options([
'Perorangan' => 'Perorangan',
'Lembaga / Organisasi' => 'Lembaga / Organisasi',
])->required()->columnSpan('full')->inline()->default('Perorangan'),
]),

TextInput::make('nomor_identitas')
->label(function (Closure $get){

if(strcmp($get('kategori'),'Perorangan')){
return (string) "NIK/No.Identitas Pribadi";
}
return (string) "NIK/No.Identitas Pimpinan";
})
->required()
->maxLength(255),
TextInput::make('nama_identitas')
->label(function (Closure $get){

if($get('kategori')==='Perorangan'){
return (string) "Nama Lengkap";
}
return (string) "Nama Lembaga / Organisasi";
})
->required()
->maxLength(255),
FileUpload::make('file_identitas')
->required()
->label(function (Closure $get){

if(strcmp($get('kategori'),'Perorangan')){
return (string) "Upload KTP Pribadi";
}
return (string) "Upload KTP Pimpinan";
})
->enableOpen()
->reactive()
->directory('ktp-pemohon')
->disk('private')->columnSpan('full')
->visible(fn (Closure $get) => strcmp($get('kategori'),'Lembaga / Organisasi'))->columnSpan('full'),

tried adding reactive still no luck the label wont change
8 replies
FFilament
Created by daisy21 on 9/27/2023 in #❓┊help
SETTING MULTIPLE DATABASE FILAMENT
is it possible to use 2 different database for a filament project? ex : i have a filament project A and B now i want to make filament B have its own DB but still uses A's to view some of its tables. can filament understand which connection the model uses if i use this in the model? . protected $connection = 'mysql2';
9 replies