title: mpdf change temp path (composer package)
body: <p>I have installed <code>mpdf/mpdf</code> via composer.</p>
  
  <p>All works perfectly in development environment, however in production / staging, I get a permissions error.</p>
  
  <pre><code>file_put_contents(\/.../ttfontdata\/dejavusanscondensed.GSUBGPOStables.dat): failed to open stream: Permission denied' in .../shared\/vendor\/mpdf\/mpdf\/classes\/ttfontsuni.php:999\nStack trace:\n#0 [internal function]: Illuminate\\Exception\\Handler-&gt;handleError(2, 'file_put_conten...', '...', 999, Array)\n#1 
  </code></pre>
  
  <p>As per mpdf documentation, I need to define the path for my storage folder:</p>
  
  <pre><code>// Tried this at top of index.php before require bootstrap/autoload.php
  define("_MPDF_TEMP_PATH", dirname(__FILE__) . '/../app/storage/mpdf/');
  
  // Tried this just before creating a new mpdf
  define("_MPDF_TEMP_PATH", storage_path() . '/mpdf/');
  </code></pre>
  
  <p>I am using Laravel as a framework - and mpdf just will not use my specified temp folder</p>