Answers for "foreach ($users as $item){ $follow = Follow::where('follower_id', Auth::user()->id)->where('following_id', $item->id)->count(); $item['follow_count'] = $follow; }"

PHP
0

foreach ($users as $item){ $follow = Follow::where('follower_id', Auth::user()->id)->where('following_id', $item->id)->count(); $item['follow_count'] = $follow; }

foreach ($users as $item){
                $follow = Follow::where('follower_id', Auth::user()->id)->where('following_id', $item->id)->count();
                $item['follow_count'] = $follow;
            }
Posted by: Guest on March-14-2022

Code answers related to "foreach ($users as $item){ $follow = Follow::where('follower_id', Auth::user()->id)->where('following_id', $item->id)->count(); $item['follow_count'] = $follow; }"

Browse Popular Code Answers by Language