title: When I am logged in I want to see all users' information, other than the logged-in user, in Laravel?
body: <p><strong>home blade</strong>   </p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;div class="card-header"&gt;Total Users: {{ $users-&gt;count() }} &lt;/div&gt;
  
  &lt;div class="card-body"&gt;
      @if (session('status'))
          &lt;div class="alert alert-success" role="alert"&gt;
              {{ session('status') }}
          &lt;/div&gt;
      @endif
  
      &lt;table class="table table-dark table-striped"&gt;
          &lt;tr&gt;
              &lt;th&gt;SL&lt;/th&gt;
              &lt;th&gt;Name&lt;/th&gt;
              &lt;th&gt;Email&lt;/th&gt;
              &lt;th&gt;Created at&lt;/th&gt;
          &lt;/tr&gt;
          @foreach($users as $user)
              &lt;tr&gt;
                  &lt;td&gt;{{$loop-&gt;index +1}}&lt;/td&gt;
                  &lt;td&gt;{{ $user-&gt; name}}&lt;/td&gt;
                  &lt;td&gt;{{$user-&gt;email}}&lt;/td&gt;
                  &lt;td&gt;{{$user-&gt;created_at-&gt;diffForHumans()}}&lt;/td&gt;
              &lt;/tr&gt;
       @endforeach
     &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>HomeController</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>public function index()
  {
      $users =  User::all();
      return view('home', compact('users'));
  }
  </code></pre>
  
  <p>When I am logged in I want to see all the other users information in a table other  than the logged-in user in Laravel.  How can I accomplish that?</p>