title: Laravel append image path to array of object
body: <p>for make an api to return all images of the doctor</p>
  
  <pre><code>$images = Doctor::select('image')-&gt;get();
  </code></pre>
  
  <p>so the response is like the </p>
  
  <pre><code>`[
    { image: 111.png },
    { image: 222.png },
    { image: 333.png }
   ]`
  </code></pre>
  
  <p>then i return the images</p>
  
  <pre><code>return $images
  </code></pre>
  
  <p>I want to append the path to the image before return it like </p>
  
  <blockquote>
    <p>mypath/222.png</p>
  </blockquote>
  
  <p>i can do this with a for loop put i thank that made a more unnecessary complexity</p>
  
  <p>so is their a way to make it in the eloquent   </p>