mardi 28 juin 2016

laravel 5.2 lists() method output different on server Issue with DB::lists method

return $local_places = DB::table('locals')->distinct('id')->lists('id');

Locally on Windows it outputs [1] which is fine as should be but
Server in server running Ubunutu 14.04 it outputs ["1"] which is having double quotes and so my code is not working. Please help



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire