title: Laravel: get additional ressources for injected object
body: <p>I have a ressource controller with a function like this:</p>
  <pre><code>public function show(Table0 $myData) {
     return $myData-&gt;with('additionalTable1')-&gt;with('addtionalTable2')-&gt;first();
  }
  </code></pre>
  <p>but that will always return the first object from the database. Always the same one no matter what Id I submit.</p>
  <p>This variant works:</p>
  <pre><code>public function show(int $myData) {
     return Table0::where('key', $myData)-&gt;with('additionalTable1')-&gt;with('addtionalTable2')-&gt;first();
  }
  </code></pre>
  <p>But it doesn't make use of the injection. Is there a way?</p>