Q:

Laravel WHERE query for a single column result

I have the following controller which is supposed to return all users who are not verified yet.  
public function getUserRequests()
{
    $userRequests = User::where('status' ,"Not Verified");

    foreach($userRequests as $user)
    {
        echo $user->name;   
    }
}

The output is an empty page.  What can I do? 

A:

You should use get() method to get data:
$userRequests = User::where('status' ,"Not Verified")->get();

