title: Laravel first() vs take(1)->get()
body: <p>I'm learning laravel, and am kind of following a youtube tutorial where were building a blog. Anyway, I am trying to make a page which shows single blog post, and uses slug instead of id to show it. Anyway, this is my blog controller:</p>
  
  <pre><code>class BlogController extends Controller {
  
      public function getSingle($slug) {
          $post = Post::where('slug', $slug)-&gt;take(1)-&gt;get();
          return view('blog/single')-&gt;with('post', $post);
      }
  }
  </code></pre>
  
  <p>But this way, It wont work.. On my blog/single view, i cant access $post->title for example. But, when I do it like this:</p>
  
  <pre><code>class BlogController extends Controller {
  
      public function getSingle($slug) {
          $post = Post::where('slug', $slug)-&gt;first();
          return view('blog/single')-&gt;with('post', $post);
      }
  }
  </code></pre>
  
  <p>.. it works fine. I have access to title, body and created/updated at times. </p>
  
  <p>What is the reason first method wont work?</p>
  
  <p>Thank you in advance. :)</p>