dimanche 29 septembre 2019

Voyager Addition field options

im using Voyager Laravel to build my app, but im having some issues regarding the form fields, in my Bread column of "transmission" i have included in the json form this:

column transmission:

{
    "options": {
        "option1": "Automática",
        "option2": "Manual"
    }
}

In the admin is displaying well the information, the problem is when i call it in the frontend for example:

$car->transmission -> outputs -> "option1"

Im trying to find in the documentation regarding calling only the text/label of the option1 that is correct, but no information im finding.

Anybody the uses Voyager had the same issue?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire