This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I figured out yesterday how to store checkboxfields jsonable and in the backend all checkboxfields are stored perfectly. But now I've made a frontend view for the detailsPage and the checkboxed values cannot be shown there because of an error that says: An exception has been thrown during the rendering of a template ("Array to string conversion").
How do I get them values in my frontend? In this case a have several choosen 'coursetypes' that need to be shown on the page.
I tried {{record.cursustype}} but with the above shown error as result. Anyone?
Last updated
Hi simply
add $jsonable attribute to your model like this
protected $jsonable = ['columnWithJSON']
than you can access it later normally. like this:
$model->attribute
1-2 of 2