Dionysis
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
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
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
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?
This is what I am currently doing
If I do the following, I will have to click the action twice in order for the info or form to display
6 replies