Child pages
  • Laravel 에서 손쉽게 Excel 파일 다루기(Laravel Excel + PHP Excel)

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
Excel::create('excel-filename', function ($excel)
{
    // writer excel data
})->store('xlsx', storage_path('excel/export'));


서버에 저장하고 브라우저에서 전달하려면 downloadstore 메서드를 체이닝으로 사용

Code Block
Excel::create('excel-filename', function ($excel)
{
    // writer excel data
})->store('xlsx', storage_path('excel/export'))->download('xlsx');

Sheet 처리

...