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 work with PHPWord and LaravelExcel in Laravel 5.1 framework?

m new to Laravel ...I need to generate document form Mysql database im using Larvel framework i install PHPWord, maatwebsite/excel and through composer i used this document Excel and i install PHPWord using this [PHPWord][2] [2]:…
0
votes
0 answers

charts disappear on running laravel-excel

I have an excel template which gets populated with data in one of the sheets. That data is used to update the charts in other sheets of the same excel file. the updated file now gets downloaded automatically. I use laravel-excel to update the data…
Prady
  • 3
  • 6
0
votes
2 answers

Looping through an array within an array in laravel-excel

I am using laravel-excel to attempt to upload a .csv file and then loop through the uploaded files to make updates to a database. What I think is going on is laravel-excel is creating an array within an array, to which I have no idea on how to check…
User14289
  • 189
  • 5
  • 19
0
votes
1 answer

Laravel CSV Import inserting with the same ID (Simple Import)

This is my store method which grabs the file and loops through each of the rows: public function store() { $input = Input::file('statuses'); $filename = $input->getRealPath(); $i = 0; $rows =…
ChrisBratherton
  • 1,540
  • 6
  • 26
  • 63
0
votes
1 answer

laravel upload csv and import csv file data to database with integer field

I am trying to upload csv and import csv data to database it works fine, but I am facing issue with the integer field in the database. My csv file have product name and quantity field Excel::filter('chunk')->load($uploaded_file)->chunk(100,…
Prabhakaran
  • 3,900
  • 15
  • 46
  • 113
0
votes
0 answers

Maatwebsite/Excel fails on import with Laravel 4.2

I'm writing a web-app to parse Excel files, each contains a lot of data (~47 columns and thousands of rows). The framework is Laravel 4.2 and the package used is laravel-excel (maatwebsite/excel). When I wrote all the code, I had a sample file from…
Anton Egorov
  • 1,328
  • 1
  • 16
  • 33
0
votes
1 answer

Copying Excel from Template xls

I have a template xls to which I write some data. This template needs to be saved in different folder under different name. Here is code I use: Excel::load('template.xls', function($excel) use($order) { // Writing stuff …
GeekDaddy
  • 619
  • 1
  • 10
  • 21
0
votes
1 answer

Get a Data from CSV from submited form using laravel

I am currently developing in OctoberCMS which uses Laravel and a built in AJAX framework. Upon submission of a form, I am trying to capture data in a CSV and ultimately load it into the database. I am using Laravel Excel v1.2.2 And the code i have…
Bruce
  • 107
  • 1
  • 3
  • 8
0
votes
1 answer

Laravel Excel how to use second row as collection attributes

I am using Maatwebsite's Laravel-Excel package. I want to import an Excel file, have laravel-excel ignore the first row, and use the second row as the collection attributes (table columns). Without resorting to "import by config", is this…
chipit24
  • 6,509
  • 7
  • 47
  • 67
0
votes
1 answer

Laravel Excel - blank sheets when creating multiple sheets

I had this working, using Laravel 4 and Laravel Excel to export data from mySQL. I have objects for Regtype and Attendee and I want one sheet per regtype with all related attendees. I had a single sheet of attendees exporting great. Now I've added a…
Dylan Glockler
  • 1,115
  • 1
  • 20
  • 40
0
votes
1 answer

How can I pass an object to the sheet method in Laravel Excel?

I'm trying to pass an object into the Laravel Excel sheet method but I'm not sure how. I get an undefined variable error - which I realize is because I'm inside a function that doesn't have scope to reach the object. Ultimately I'm loading up…
Dylan Glockler
  • 1,115
  • 1
  • 20
  • 40
0
votes
1 answer

Laravel excel Check image name with space not working

Excuse me, I use laravel excel using blade and there are images on the cells.. I do file exist checking.. Like this: photo)) { ?>
Khaneddy2013
  • 1,301
  • 1
  • 17
  • 25
0
votes
1 answer

Laravel excel setWidth method not working

Excuse me, This is the result of exported report: I want to resize width of B column.. I try use : $sheet->setWidth('B', 5); But it is not working I try to set width at the html table :
Khaneddy2013
  • 1,301
  • 1
  • 17
  • 25
0
votes
5 answers

Image file not found error in laravel view to excel plugin

I am using Laravel plugin Laravel Excel to load view directly into excel sheet. Everything goes fine. But while using image in my view, error prompts saying the full url of the image not found. Error is: PHPExcel_Exception File…
Sangam Uprety
  • 1,482
  • 2
  • 20
  • 38
-1
votes
1 answer

How to Convert One Cell to Multiple Rows in Excel Laravel

I have a table, and I want to export the data in this table into an excel file. But I am having problem formatting the data cells in SKU column. this is my code for excel Excel::store((new StandardExport($q))->setHeaders([ …