title: How to structure multiple PHP queries
body: <p>I just had a question regarding how to structure a line of code that gathers all of the objects of my Task objects into my array based on a couple of conditions aka multiple queries.</p>
  
  <p>What I want to do is gather all of the objects with certain department names and certain full names that are inputted by my user in another html file. </p>
  
  <p>So far, it stores and displays the correct objects for departments but I can't seem to figure out how to add a full name filter too... Here's what I have so far but I can't find anything on the Internet regarding if this is correct syntax to have multiple queries. Thank you! :)</p>
  
  <pre><code>$tasks = Task::where('department',$request['selected'])-&gt;where('name'.' '.'last_name', $request['full_name'])-&gt;paginate(5);
  </code></pre>