title: laravel 5.4,phpword: how to display a word doc with read only permission without forcing download?
body: <p>I'm new in laravel and I use <strong>phpword</strong> to edit a word doc file.</p>
  
  <p>I want once I save it I can display it in <strong>read only permission</strong>.</p>
  
  <p>I want to display it directly <strong>without forcing download</strong>.</p>
  
  <p>I tried this code but it forces the download.</p>
  
  <p>Here is my code :</p>
  
  <pre><code>  public function create()
    {
      $phpWord = new \PhpOffice\PhpWord\PhpWord();
      $section = $phpWord-&gt;addSection();
      //Ajouter l'image
      $section-&gt;addImage(
        'C:\wamp\www\Stage_2\public\images\mobilis256.png',
        array(
          'width'         =&gt; 100,
          'height'        =&gt; 100,
          'marginTop'     =&gt; -1,
          'marginLeft'    =&gt; -1,
          'wrappingStyle' =&gt; 'behind'
          ));
      $objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');
      try {
        $objWriter-&gt;save(storage_path('helloWorld.docx'));
      }catch(Exception $e)
      {}
      $filename = 'helloWorld.docx';
      $path = storage_path($filename);
      return Response::make(file_get_contents($path), 200, [
        'Content-Type' =&gt; 'application/docx',
        'Content-Disposition' =&gt; 'inline; filename="'.$filename.'"'
        ]);
    }
  </code></pre>
  
  <p>i tried also </p>
  
  <pre><code>return response()-&gt;file(storage_path('helloWorld.docx'));
  </code></pre>
  
  <p>but always the same result.</p>
  
  <p>what should I do, and <strong>how can i disply it in read only permission?</strong></p>