I am using Laravel 5 collections. My query is as follows:
$lastplace = collect(@$this->places)->where('type', 'street')->last();
Locally, it will return the correct last element in the array, but on the server it will return null with the exact replica of the database on the local + server.
I am running the Native MySQL driver and I have no problem with any other queries, only on the server.
From ideas ..
source
share