title: mysql_num_rows in laravel?
body: <p>im trying to use mysql_num_rows in laravel but laravel says it not the same way like in 'raw php'</p>
  
  <blockquote>
    <p>example:</p>
  </blockquote>
  
  <pre><code>$users = DB::table('users')
           -&gt;where('username', '=', $username)
           -&gt;where('password', '=', $password)
           -&gt;get();
  </code></pre>
  
  <blockquote>
    <p>what i want to do:</p>
  </blockquote>
  
  <pre><code>$count = mysql_num_rows($users);
  
     if($count &gt; 0 ){
  
        $user-&gt;login = $request-&gt;login;
        $user-&gt;email = $request-&gt;email;
        $user-&gt;password = $request-&gt;password;
  
        Auth::login($user);
        return redirect("/");
        }else{
           return "datos incorrectos";
        }
  </code></pre>
  
  <blockquote>
    <p>what laravel says:</p>
  </blockquote>
  
  <pre><code>Call to undefined function App\Http\Controllers\Auth\mysql_num_rows()
  </code></pre>
  
  <p>PD: its not philosophy of code just make commets about that question, i dont want answers like "u gonna crypt that thing?", "why not use [insert my faborite ORM]" is just a simple question THANKS</p>