I'm using Laravel on a Windows workstation, and on a Linux, I'm running a test with the following line only:
echo gettype(Patient::find(11)->case_id);
I've added this column like this:
$table->integer('case_id');
the db is on the linux, and I connect remotely from the windows.
the result: on the windows machine: "integer", on the linux machine: "string"
(This caused a terrible bug where I used === expecting it to be integer...)
Any ideas?