In controller I got all users with this:
$users = User::all();
return view('users, compact('users'));
if I use this code in blade, does this make another query?
@foreach($users->where('active', true) as $user)
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!