Do you get the error if you don't set the Toast alert?
Oct 20, 2019
9
Level 1
Laravel Excel Export Warning
Hi All,
I have started to use Laravel Excel in my web app and it all works fine. I get the excel except following warning in my browser console:
Resource interpreted as Document but transferred with MIME type application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: "http://fpone.homestead/jobsExport".
I've read in someplace that we can ignore this warning but the problem is my toast alert is not triggering due to this matter,
Following is my controller:
public function jobsExport()
{
Alert::toast('Jobs Exported into Excel', 'info');
return Excel::download(new JobsExport, 'Jobs-' . Carbon::now() . '.xlsx', \Maatwebsite\Excel\Excel::XLSX);
}
Can anyone give me some help to figure out a solution?
Level 102
Like this
<a href="{{route('jobsExport')}}" class="btn btn-secondary" download>
Export Excel
</a>
1 like
Please or to participate in this conversation.