namespace App\Nova\Templates;
use Whitecube\NovaPage\Pages\Template;
class Home extends Template
{
/**
* The JSON attributes that should be automatically decoded
*
* @var array
*/
protected $jsonAttributes = ['title', 'body'];
}
But when i call it i get
json_decode() expects parameter 1 to be string, array given
Error occured here
//vendor/whitecube/nova-page/src/Sources/Database.php
i have a template like this:
But when i call it i get
json_decode() expects parameter 1 to be string, array given