Dionysis
Dionysis
FFilament
Created by Dionysis on 2/21/2024 in #❓┊help
CreateRecord Resource Page with custom mount options
Greetings, I am making a page which generates a custom form based on the form slug given within the URL. While it works with a custom page, I was wondering if it's possible to replace the default mount of a CreateRecord page so I can keep its original functionality I would like to mention, that everything is saved into an answers JSON column, there are no dynamic properties
2 replies
FFilament
Created by Dionysis on 11/26/2023 in #❓┊help
Dynamically translate labels using configureUsing by adding a new translatable label
I am in the process of translating an application into Greek. The translation is straightforward for most parts, but problems arise when translating labels that reference a model. For instance, in translating a create button, I typically have to visit each create button, assign a custom label alo ng with a page title, and then add these to the corresponding language JSON file. I attempted to dynamically change labels using configureUsing(), with code like $action->label("Create {$action->getModelLabel()}"). However, this approach fails because getModelLabel() cannot be used at that point, as the action is not yet initialised. Is there any way to accomplish this without going through each action, title, modal heading, since the code will be repeatable and will look bloated?
3 replies
FFilament
Created by Dionysis on 8/25/2023 in #❓┊help
Adding custom select similar to tenant selection in navigation
Is it possible to have a select at the top of my sidebar, similar to the tenant selection?
4 replies
FFilament
Created by Dionysis on 8/18/2023 in #❓┊help
Spatie Settings not loading within AdminPanelServiceProvider
Greetings, I've been dynamically loading certain things to let the user customise the panel to their needs, however, after updating the composer it has stopped working. So as an example, I am no longer able to use app(GeneralSettings::class)->name to load something as it has no connection.
12 replies
FFilament
Created by Dionysis on 7/29/2023 in #❓┊help
Reusing a form using the form() function from a resource
Greetings, instead of having to have a function that returns an array with the components i.e. getFormSchema(), is it possible to add the form to an action just like in a relation manager as follows?
public function form(Form $form): Form
{
return SubscriptionResource::form($form);
}
public function form(Form $form): Form
{
return SubscriptionResource::form($form);
}
This is what I am currently doing
Tables\Actions\EditAction::make()
->form(UserResource::getFormSchema()),
Tables\Actions\EditAction::make()
->form(UserResource::getFormSchema()),
If I do the following, I will have to click the action twice in order for the info or form to display
Tables\Actions\EditAction::make()
->form(fn ($form) => UserResource::form($form)),
Tables\Actions\EditAction::make()
->form(fn ($form) => UserResource::form($form)),
6 replies