title: Undefined variable in welcome.blade
body: <p>ItemsController has below code</p>
  
  <pre><code>public function index()
  {
      $items = Item::all();
      return view('welcome' , ['items' =&gt; $items]);
  }
  </code></pre>
  
  <p>The model name is Item</p>
  
  <p>In welcome.blade i am calling it like this</p>
  
  <pre><code>       @foreach($items as $item)
          &lt;li class="list-group-item"&gt;&lt;a href="/{{$item-&gt;id}}"&gt;{{$item-&gt;title}}&lt;/a&gt;&lt;/li&gt;
          @endforeach
  </code></pre>
  
  <p>but it gives "Undefined variable: items (View: ..... welcome.blade.php)"</p>
  
  <p>Also i want to know, how will i get and show a single row from database. and how i will get and show many rows. Being new to laravel; things are confusing me a lot.</p>