Dom
Dom
FFilament
Created by Dom on 5/27/2024 in #❓┊help
Is Spatie Translatable plugin compatible with filament custom pages?
No description
6 replies
FFilament
Created by Dom on 12/14/2023 in #❓┊help
Filament access control - I don't get the registration email
Anybody using https://github.com/chiiya/filament-access-control ? I followed the instructions but I don't get the registration email after creating a user on the admin panel
8 replies
FFilament
Created by Dom on 10/5/2023 in #❓┊help
Disable a toggle component in a resource if another a certain text input is empty
As title says. I want to disable or enable a toggle component depending on whether the numeric text input is empty or not. The component i want to disable has 'is_highlighted' in the make function and the component i want to check has ''order'. This is what i've tried.
->afterStateUpdated(function ($value, $state, $formRequest) {
if (!empty($value)) {
$formRequest->setComponentProperty('is_highlighted', 'disabled', true);
return;
}
$formRequest->setComponentProperty('is_highlighted', 'disabled', false);
}),
->afterStateUpdated(function ($value, $state, $formRequest) {
if (!empty($value)) {
$formRequest->setComponentProperty('is_highlighted', 'disabled', true);
return;
}
$formRequest->setComponentProperty('is_highlighted', 'disabled', false);
}),
1 replies