Ad

Insert Multiple Image Using Repeater With Mediafinder In OctoberCMS

I'm creating a new Plugin using the Builder Plugin and adding a repeater with media finder.The problem is to insert repeater value in the database. Bellow have attached the screenshot of the error.

enter image description here

enter image description here

What is the problem?

Thanks.

Ad

Answer

The field must be jsonable, so you need to add the following code in your model file.

protected $jsonable = [
    'images'
];
Ad
source: stackoverflow.com
Ad