I really don't know if this is a MySQL or PHP issue. On my live server integer columns are returned as strings which is the way I've always had it. However on my local server they are returned as integers instead of strings.
I searched around but other than comments about typecasting there is nothing about some kind of config parameter. I'm using laravel 4 and it' the same code on both local and y live server.
I don't want to typecast everything and just prefer it to be returned as strings. I'm using wamp locally and the versions for mysql and php between my server and local or very close so I imagine it's some kind of config somewhere?
EDIT:
Code is straight forward:
$word = Word::first(array('status'));
echo $word->status === '1' ? 'true' : 'false'; // returns false
echo $word->status === 1 ? 'true' : 'false'; // returns true
For my MySQL and PHP versions they are almost the same:
Live: php5.4.20, mysql5.5.34 Local: php5.4.16, mysql5.6.12