title: Undefined property: stdClass - LARAVEL
body: <p>I'm trying to make an admin page where the owner of the store can check the info from users that singed on the website, but I always get the <code>Undefined property: stdClass::$name</code> error </p>
  
  <p>Here's the controller function:</p>
  
  <pre><code>public function listar(){
      $users = DB::table('users')-&gt;select('name')-&gt;orderBy('updated_at', 'desc')-&gt;get();
      $users = DB::table('users')-&gt;select('email')-&gt;orderBy('updated_at', 'desc')-&gt;get();
      $users = DB::table('users')-&gt;select('phone')-&gt;orderBy('updated_at', 'desc')-&gt;get(); 
  }
  </code></pre>
  
  <p>Here's part of the form:</p>
  
  <pre><code>@foreach ($users as $u)
      &lt;tr&gt;
          &lt;td&gt;{{ $u-&gt;name }}&lt;/td&gt;
          &lt;td&gt;{{ $u-&gt;email }}&lt;/td&gt;
          &lt;td&gt;{{ $u-&gt;phone}}&lt;/td&gt;
      &lt;/tr&gt;
  @endforeach
  </code></pre>
  
  <p>I just want it to be able to show this info from the database.</p>