@wali_razzaq try whereLoose instead of where.
Mar 10, 2016
2
Level 18
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
Level 27
1 like
Please or to participate in this conversation.