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

How to perform custom tasks or fire an event while importing xlsx file via laravel excel

I'm new to laravel, I wanted to insert student details in mysql database from xlsx file. I used Laravel excel v3 to import excel file. It is working good. But along with inserting student details in 1 table, The same student id record should be made…
-1
votes
1 answer

How to make a excel file with laravel excel with beautified or nice looking tables?

Heres my problem. I want to make a good looking table for my orders and inventory stock as excel files. But I can't find how to import tables in the file and save it and not create another new file. Please help me on what can I do here! Laravel…
-1
votes
1 answer

Laravel Excel Export with Vlookup formula multiple sheets

I have a working environment with many exports using Laravel-Excel (maatwebsite.nl). In an export I would like to achieve the following. I have multiple sheets and would like to have a sheet where i would use a Vlookup formula that searches values…
-1
votes
1 answer

Laravel Excel (CSV file writer) add extra column(s) to some rows to make them have equal columns

I used Laravel excel to generate a CSV file from arrays. The CSV file has two rows: Row 1 has 3 columns: One | Two | Three Row 2 has 4 columns One | Two | Three | Four Problem If I open the file generated using a text editor, the output I got for…
-1
votes
1 answer

How to change columns names in Excel Laravel?

I use this library to export data from collection to excel file. By default I et columns names as namesd of table fields. How to replace names of colums on own? I have own abstract class: abstract class Excel { abstract public function…
user15444752
-1
votes
1 answer

How can I hide excel file column when doing import function?

I want to hide program_code column in excel file when importing. What should I do? I'm using ToModel for Class Import. ProgramImport.php public function __construct(string $program_code) { $this->program_code = $program_code; } public function…
TrJoke
  • 69
  • 7
-1
votes
1 answer

Edit an existing exported csv file via PHP / Laravel and re-save

I am using Laravel-Excel to export a CSV file with a header and footer row. The header and footer rows only have 2-3 columns, however body rows have multiple additional columns - resulting in additional trailing commas at the end of the header and…
stankobrin
  • 95
  • 1
  • 1
  • 8
-1
votes
2 answers

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'id_subdist' cannot be null

I face problem and make me dizzy, what's wrong with this code and make my program in trouble This is my error SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'id_subdist' cannot be null (SQL: insert into transaksi (id_subdist, id_toko,…
Lucas Futami
  • 41
  • 10
-1
votes
1 answer

LaravelExcel: Interface 'App\Exports\FormView' not found

I am working with Laravel 5.8 with PHP 7.4 to develop my project, and in this project, I wanted to make an Excel file out of a table called students from View. So here is what I did: I typed composer require maatwebsite/excel at the Terminal and…
user9277271
-1
votes
2 answers

PhpSpreadsheet \ Reader \ Exception Failed to load /root_dir/public/laravel-excel-fLRGTlw9uEE2XRz0k1fXdcg2wfs2RWy7.html as a DOM Document

I have tried everything for resolving this issue but nothing worked. php artisan cache:clear php artisan view:clear php artisan route:clear php artisan config:clear Also Updated my Dependencies composer dump-auto -a composer update But Nothing of…
Abdul Rehman
  • 142
  • 1
  • 12
-1
votes
1 answer

How do i import until row 5 using laravel excel version 3.1?

how to import file data excel until row 5 using laravel excel 3.1? excel code
ara
  • 1
  • 1
-1
votes
1 answer

How do I make automatic height row based on content in the maatwebsite version 3 laravel excel?

I had search reference and the reference say to try like this :
moses toh
  • 12,344
  • 71
  • 243
  • 443
-1
votes
1 answer

Returned data from Laravel for Downloading Excel file is nonsense, How to fix it?

I have project which i'm using vue.js in blade file, and for exporting excel, i'm trying to this method, which giving a response like this : Here's the Code Structure: In Blade.php(There's a buttin which it's getting startDate, endData, to get…
Mohammad Eskandari
  • 221
  • 1
  • 5
  • 14
-1
votes
2 answers

How to add months dynamically which is stored in database as a header in excel file while exporting using laravel?

Suppose I have items in database which is stored from an Excel file. All the items should be below the header of the months. I have also stored months from the file in the database. So, I want those months to be the header of those items and it's…
Akhtar Munir
  • 1,691
  • 3
  • 11
  • 28
-1
votes
1 answer

Import CSV file in laravel

I'm using maatwebsite/excel and I have CSV file including 1449 rows where I have value and parent title in each row. (here is sample of it) what i want is to get id of parents from another table and use those id's instead of titles (which i have in…
mafortis
  • 6,750
  • 23
  • 130
  • 288
1 2 3
37
38