i am running mssql2008 with laravel 5.0 and every time i retrieve data from DB seems like everything is been returned as string no matter which format i have it stored on the da
I use MySQL and also found same problem in some cases. Don't use mutator, use attribute casting instead.
protected $casts = [
'id' => 'integer',
'owner_id' => 'integer',
'is_local' => 'integer',
'vessel_type_id' => 'integer',
'registration_number' => 'integer',
'gross_register_tonnage' => 'integer',
'year_built' => 'integer',
];