Questions tagged [laravel-excel]

Import and export Excel and CSV files in Laravel (based on PhpSpreadsheet)

Import and export Excel and CSV files using Laravel code. Supported formats: XLSX, CSV, TSV, ODS, XLS, HTML.

Reference

563 questions
-1
votes
1 answer

Encoding in Laravel Excel

Is there any way to set encoding (change UTF-8 to WINDOWS1252) in Laravel Excel when downloading a CSV? I can do: \Excel::create('Exemple', function(LaravelExcelWriter $excel) { // ... })->download('csv'); But I cannot set the encoding... Maybe…
rap-2-h
  • 30,204
  • 37
  • 167
  • 263
-2
votes
1 answer

Cant able to import 1M excel data with laravel-excel package and laravel queue

I want to import a csv:xlsx file which has 50 column and 1M rows I tried with laravel-excel package and Laravel queue. Some how i cant import the data. Nginx timeout given. I modify the max execution time in my php setting In import…
-2
votes
2 answers

Is there anyone who can help me to install maatwebsite/excel

I have tried to install composer require maatwebsite/excel and I have tried several times but still getting errors and I'm using laravel 9.23.0 and PHP v8.0.5 here is the error. Using version ^3.1 for maatwebsite/excel ./composer.json has been…
Shobi
  • 1
  • 5
-2
votes
2 answers

Laravel Excel Not Importing Data To Database

When I am importing data from excel after getting the file and on the step of saving data to db it showing field doesn't have value from excel file. Where as all the fields are filled with data. i am using laravel excel LeadImport Code return new…
sagohi
  • 1
  • 2
-2
votes
8 answers

I have face a problem to install maatwebsite/excel on laravel 8 | php 8?

I have face this problem to install maatwebsite/excel on laravel 8. How can I fix it? NB: PHP version running 8.
Abdullah Al Mamun
  • 310
  • 2
  • 4
  • 14
-2
votes
1 answer

Could I change row before saving Laravel Excel?

I use Laravel Excel. The code builds excel file and does export to path $path.$filename: Excel::store(new VisitorsExport($request), $path.$filename); Could I iterate all rows before Excel::store?
POV
  • 11,293
  • 34
  • 107
  • 201
-2
votes
2 answers

Too few arguments to function App\Exports\NilaiExport::__construct(), 0 passed in NilaiController.php on line 112 and exactly 1 expected

I want to export data to excel from $id, but an error occurred when I added the constructor in App/Export/NilaiExport. thanks NilaiController.php function download($id){ return Excel::download(new NilaiExport, 'Nilai.xlsx'); …
Tammam
  • 416
  • 1
  • 7
  • 16
-3
votes
1 answer

How to fix this error in laravel 8.10.1 : Undefined constant "App\Exports\id"

I'm getting this error while calling the export function of laravel Excel. Can anyone help me solve this error or why am I getting it??? Laravel Version: 8.10.1 Laravel Excel Package Version: 3.1 My Code in Controller: namespace…
1 2 3
37
38