Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

wali_razzaq's avatar

Laravel Collection functions not working in blade.php

Hello folks! I have build an application in laravel 5.2, everything is working fine, there is a problem in laravel collections functions. They work fine in localhost but no working in cpanel servers. I am using them in blade views. They returns nothings not even producing errors. a short code line is {{$inbox_messages->where('member_id',$member->id)->count()}} even members do have messages in their inbox but it returns zero "0" for all. is there a php version difference ? I am using php 5.6 on localhost but hosting server supports php 5.5 thanks in advance

0 likes
2 replies

Please or to participate in this conversation.