MAC OS Laravel Excel doesn't work
<p>recently I changed to Mac. Before that I worked on a Windows. There no problem with this Laravel Excel. Even I can download(Export) the excel sheet also. But in the Mac when I try to export the excel it says that </p>

<blockquote>
  <p>The webpage at <a href="http://localhost/my_app/public/export" rel="nofollow">http://localhost/my_app/public/export</a> might be temporarily down or it may have moved permanently to a new web address.</p>
</blockquote>

<p>In the laravel log file located in /storage/logs it shows the error as</p>

<blockquote>
  <p>Failure to create temporary file: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/my_app/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007.php:398</p>
</blockquote>

<p>So what should I do. This project is cloned from my private repository in bitbuckect and did a composer update. Are there any issue with that !!</p>

<p>This is My Code:</p>

<pre><code>Excel::create($file_to_date, function($excel) use($result)
    {
        $excel-&gt;sheet('Sheet1', function($sheet) use($result) 
        {
            $header = array( //assign excel sheet cell headers
                array('First Name',
                      'Last Name', 
                      'Email')
                );
            $sheet-&gt;appendRow(array_values($header[0])); // column namesarray_values($data)

            $sheet-&gt;row($sheet-&gt;getHighestRow(), function ($row) //column names bold
            {
                $row-&gt;setFontWeight('bold');
            });
            foreach ($result as $r)//set values to sheet
            {
                $sheet-&gt;appendRow($r);
            }
        });
    })-&gt;export('xlsx');
</code></pre>

<p>Can we say something from this. ??</p>