title: PHP / Laravel - Tesseract OCR - Full path to file
body: <p>I have successfully installed tesseract OCR and Imagick on my Forge server. However when I try to read an image, I get below error:</p>
  
  <p>This is the error:</p>
  
  <pre><code>Error! The image "/home/forge/domain.com/storage/app/temp_files/ocrtotext_ijP1II9th2.jpeg" was not found.
  
  The current __DIR__ is /home/forge/domain.com/vendor/thiagoalessio/tesseract_ocr/src
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code> $text = (new TesseractOCR(storage_path() . '/app/temp_files/'.$imageName.'.jpeg'))
          -&gt;lang('eng')
          -&gt;psm($psm)
          -&gt;run();
  
  
          return $text;
  </code></pre>
  
  <p>What am I doing wrong? Why is tesseract looking in the <code>/vendor/</code> folder and not in my <code>storage/..</code> folder?</p>