title: Too few arguments to function Illuminate\Database\Eloquent\Builder
body: <p>I have 2 model one is task and another is order. I have used here one to many relation. Here is my code</p>
  <pre><code>    public function orders(){
      return $this-&gt;hasMany(Order::where('service_id', null), 'offerid');
  }
  </code></pre>
  <p>for task</p>
  <pre><code>    public function task()
  {
      return $this-&gt;belongsTo(Task::class, 'id');
  }
  </code></pre>
  <p>I have to fetch only those table who have service_id null. when i make like this then showing error Too few arguments to function Illuminate\Database\Eloquent\Builder.</p>
  <pre><code>$tasks = Task::where('sub_category', $id)-&gt;with('serimages', 'serSignleImg', 'user', 'orders')-&gt;get();
  </code></pre>
  <p>This is the query where i fetching all data. I have pass them through api</p>