This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Jan van de Laar
Jan van de Laar

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

Crazymodder
Crazymodder

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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.