I want to store some json format data in database from a given array. But How i do store it using controller.
Suppose I have json data like :
{\"id\"
You can convert your Model to JSON format like
$model->toJson();
or
if you have data in an array you can use json_encode(['id' => 1, 'name' => 'User 1']);
Laravel Schema does support JSON field types as well look https://laravel.com/docs/5.0/schema#adding-columns
You can use text
field type as well to store JSON data.