Laravel Eloquent retrieve row with JSON column
Try with accesor in your model, to your data model
public function getOptionDataAttribute($value){ return json_decode($value);}
and return in your controller:
return Model::all(); //What you need to retrieve
the output must be:
{ id: 1 name: name, option_data: {"gender":"Male","cnic":"1234567","dob":"2016-03-14"}}