title: better understanding about @foreach on laravel
body: <p>i just want to ask how exactly @foreach in laravel works for examply code like this</p>
  <pre><code>@foreach ($users as $user)
  
  @endforeach
  </code></pre>
  <p>i know $users value can be obtained from controller like this:</p>
  <pre><code>public function show()
  {
      $users = users:find($id);
  
      return view('user_tab', compact('users'));
  }
  </code></pre>
  <p>but i saw some tutorial on site that do @foreach like :</p>
  <pre><code>@foreach ($user-&gt;posts as $post)
  
  @endforeach
  </code></pre>
  <p>what's posts without <code>$</code> stand for ??   i just dont know. i do already read laravel documentation about this on here <a href="https://laravel.com/docs/8.x/blade" rel="nofollow noreferrer">https://laravel.com/docs/8.x/blade</a> but still cant understand it can someone explain it to me? thx for advance</p>