Johan
Johan
FFilament
Created by Johan on 11/26/2024 in #❓┊help
Translatable Plugin - getLocaleLabelUsing
6 replies
FFilament
Created by Johan on 11/26/2024 in #❓┊help
Translatable Plugin - getLocaleLabelUsing
Right now we can not use the method within the service provider.
SpatieLaravelTranslatablePlugin::make()
->defaultLocales(
array_map(
static fn ($locale) => type($locale)->asString(),
config()->array('app.locales')
)
)
->getLocaleLabelUsing(fn (string $locale, ?string $displayLocale = null): ?string => $locale),
SpatieLaravelTranslatablePlugin::make()
->defaultLocales(
array_map(
static fn ($locale) => type($locale)->asString(),
config()->array('app.locales')
)
)
->getLocaleLabelUsing(fn (string $locale, ?string $displayLocale = null): ?string => $locale),
Because it needs to return itself, which it doenst.
6 replies
FFilament
Created by Johan on 11/26/2024 in #❓┊help
Translatable Plugin - getLocaleLabelUsing
In fact it is a sort of setter method:
public function getLocaleLabelUsing(?Closure $callback): void
{
$this->getLocaleLabelUsing = $callback;
}
public function getLocaleLabelUsing(?Closure $callback): void
{
$this->getLocaleLabelUsing = $callback;
}
6 replies
FFilament
Created by Abi on 8/31/2023 in #❓┊help
Additional validations on the `action` method for Standalone action
I want to show the errors triggered by that import
9 replies
FFilament
Created by Abi on 8/31/2023 in #❓┊help
Additional validations on the `action` method for Standalone action
I use the modal to upload an Excel file which I process with Maatwerk/Laravel-Excel
9 replies
FFilament
Created by Abi on 8/31/2023 in #❓┊help
Additional validations on the `action` method for Standalone action
Are you willing to share some code of it? I have a similar use case.
9 replies
FFilament
Created by Abi on 8/31/2023 in #❓┊help
Additional validations on the `action` method for Standalone action
@Abishek you found a fix for this?
9 replies
FFilament
Created by Johan on 9/25/2023 in #❓┊help
Throw validation (exception) from action
So I would like to forward the errors of that package to the modal form of the action.
12 replies
FFilament
Created by Johan on 9/25/2023 in #❓┊help
Throw validation (exception) from action
True but I use the Maatwerk Excel package to validate it. To be consistent with the frontend.
12 replies
FFilament
Created by Johan on 9/25/2023 in #❓┊help
Throw validation (exception) from action
In the form there is an upload field, the action checks the content of the file. If it is not good I want an error message on the upload field.
12 replies
FFilament
Created by Johan on 9/25/2023 in #❓┊help
Throw validation (exception) from action
In the table header I have an import button which triggers the modal with some form fields.
12 replies
FFilament
Created by Johan on 9/21/2023 in #❓┊help
formatStateUsing not called if value is null
That worked, thanks @Arko
10 replies
FFilament
Created by Johan on 9/21/2023 in #❓┊help
formatStateUsing not called if value is null
It is only calling it for the ones which are not null
10 replies