title: Method Illuminate\\Database\\Eloquent\\Collection::addEagerConstraints does not exist
body: <p>I'm getting this error while I'm trying to fetch data from two tables.</p>
  
  <p>this is my model</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Stream extends Model
  {
      public function subjects(){
          return $this-&gt;hasMany(Subject::class)-&gt;get();
      }
  }
  </code></pre>
  
  <p>and this is my method in controller</p>
  
  <pre><code>public function viewStreamAndSubjects(){
  
          $data = Stream::with(['subjects'])-&gt;get()-&gt;all();
          dd($data);
  
      }
  
  </code></pre>
  
  <p>please tell me what I'm doing wrong here? Thank you.</p>