Reputation: 199
How do you display all list of admin that have column with the is_admin=1
? with this query? because we are not passing any data in showListAdmin.
public function Admin()
{
$users = User::all();
return view('admin.admins')->with('users',$users);
}
Upvotes: 0
Views: 563