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
My Controller function
public function index(){
$courses = Course::get();
return view('Courses.courses')->with('courses', $courses);
}