'array', 'options' => 'array', ]; public function getOptionsAttribute($value) { return json_decode($value, true); } public function form() { return $this->belongsTo(Form::class); } public function responses() { return $this->hasMany(Response::class); } public function user() { return $this->belongsTo(User::class); } }