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
0
votes
2 answers

How to descend rows in laravel excel is like pressing control enter

In the code how can I give a new line down. I want to have days on a row and have to load every day.
Sang Vo
  • 25
  • 5
0
votes
1 answer

Maats Laraval Excel: Can you export with multiple queries?

I have gone through the docs and also Googled. I see little mention of returning multiple queries on the same sheet from Maat's Laravel Excel. I presume therefore it is 1 query for 1 downloaded spreadsheet. I also presume that if you do have…
Vince
  • 1,405
  • 2
  • 20
  • 33
0
votes
1 answer

How to download Laravel Excel with Ajax method

I'm working on Laravel Excel using Ajax method. Below is my controller. public function downloadExcel(){ return Excel::download(new SomeExport(), 'project.xlsx'); } And this is ajax call. $(document).on('click', '#download_excel',…
joenpc npcsolution
  • 737
  • 4
  • 11
  • 25
0
votes
1 answer

Count record of Excel sheet before upload

I am working on Upload excel sheet. I need to count records of the excel sheet before upload to use as condition. I am using this package. My code is like below. public function import() { Excel::import(new…
abu abu
  • 6,599
  • 19
  • 74
  • 131
0
votes
1 answer

Laravel Array based date validation after_or_equal multiple dates?

I am importing excel file to collections using laravel-excel package. I am trying to validate the date field reporting_date such that it is after_or_equal two other date fields registered_date and analysis_date. With only one after_or_equal date…
SASM
  • 1,292
  • 1
  • 22
  • 44
0
votes
3 answers

How can I set encoding for export csv with Laravel Excel in Laravel

I using Laravel Excel for export CSV file in Laravel. How can I set the encoding for export csv file. I have tried several ways: Change config in excel.php 'use_bom' => false, Use mb_convert_encoding to convert content to before…
Thanh Nguyen
  • 390
  • 4
  • 6
0
votes
1 answer

Laravel Excel 3.1 styling without model

I am using laravel-excel.com in my Laravel project. Since data is not coming from a specific model, I didn't want to create a dummy model class and I generate the excel file directly: return (new…
guyaloni
  • 4,972
  • 5
  • 52
  • 92
0
votes
1 answer

Laravel Excel : error Resource interpreted as Document but transferred with MIME

Laravel Excel to export data will download empty data with only headers in excel sheet! I want to export only the filtered data from my search using excel but it will download an empty excel sheet only with headers!! please can anyone tell me where…
Faeza Salman
  • 13
  • 1
  • 7
0
votes
1 answer

How to solve Laravel Excel sheets issue?

Where can I find this onlySheets Method ? I wanna import data from Excel file that contains sheet called "Clients". I've created a ClientsImport.php file :
Aymane Lassfar
  • 133
  • 2
  • 11
0
votes
0 answers

How to import excel file into two tables with input tags at the same time?

I have two table one is users and the next one is students, the students table store the data of users based on their role. and the relation between user and student is user_id in students table. And the form includes three inputs for text and one…
Mahdi
  • 206
  • 2
  • 14
0
votes
1 answer

How to export only today's records in Laravel Excel

i want to export only today's record from my table not whole data, i used Carbon also it didnt work and it just simply export empty excel file. here i am sharing my code snap please help me. i am using laravel 7 and latest version of laravel-Excel…
Atal
  • 23
  • 1
  • 7
0
votes
0 answers

How to specify excel rows quantity for import

I'm using maatwebsite/excel 3.1,when importing excel file with 5 rows and 34 columns of data, it takes 500 rows and each row contains 703 columns and I need to decrease memory usage. How to specify rows quantity and columns too? ... public function…
zarok13
  • 15
  • 5
0
votes
2 answers

Formatting Excel Laravel with array data

I'm trying to write an excel from a laravel controller where i have all the data in an array, and i managed to write it, but i have to format it now, this is the array that i have: [2020-12-30 13:22:05] local.DEBUG: array ( 0 => array ( 0…
delv123
  • 136
  • 13
0
votes
1 answer

No query results for model [App\User] NULL 387 /laravel/framework/src/Illuminate/Database/Eloquent/Builder.php

I know a similar question has been asked but the reasons for those error does not imply in my case because I am not fetching results anywhere in code. I am not using the 'find' or 'findOrFail' method anywhere in code. I am getting this error: No…
Kulshreshth K
  • 1,096
  • 1
  • 12
  • 28
0
votes
1 answer

Laravel Excel Style with CSS not working while exporting view

I am trying to export view using laravel Excel 3.1. While the export is working, I am not being able to style it. My laravel Export looks as:
Saroj Shrestha
  • 2,696
  • 4
  • 21
  • 45