I have a bit type column in database table. First I was having problem saving field which solved by this question Laravel 4.2 BIT datatype issue
But now when I retrieve data i a getting that bit type field as {}.
"active": {}
Please help me if anyone has solution.
Edit: Sorry, the problem is while creating object.
I have a "schedule" table in which I have "active" field which is BIT. When I create new Schedule using laravel eloquent, returned object has 'active' field as emptystring {}, No matter bit value is 0 or 1.
$schedule = Schedule::create($input);
returns
{
"active": {},
"cityId": 84,
"eventdate": "2015-09-01T00:00:00+05:30",
"updatedon": "2015-09-15 16:53:48",
"createdon": "2015-09-15 16:53:48"
}