如何从数据库中检索json数据到laravel刀片

I'm using Laravel to build my system and I needed to send multiple option from drop down input field and it was done successfully by sending as json_encode.

but when I retrieve data to laravel blade, it display like this: ["Sinhala","Englis"]

How can I show it without brackets and commas? I tried json_decode and an error occurred (see image)

my database is like this Database

My Controller function

public function index(){
    $courses = Course::get();
    return view('Courses.courses')->with('courses', $courses);
}

You can do like this using the json_decode function so you got the array of the values then make string using the implode function with comma separated.

<?php

$data = '["Sinhala", "English"]';

$data = json_decode($data);

echo implode(', ', $data);

Output

enter image description here