laravel-excel

Laravel Excel Style with CSS not working while exporting view

ε祈祈猫儿з 提交于 2021-02-11 12:29:27
问题 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: <?php namespace App\Exports; use Illuminate\Contracts\View\View; use Maatwebsite\Excel\Concerns\FromView; use Maatwebsite\Excel\Concerns\WithEvents; use Maatwebsite\Excel\Concerns\RegistersEventListeners; use Maatwebsite\Excel\Events\AfterSheet; class MatrixExcelExport implements FromView, WithEvents { use RegistersEventListeners; protected $data,

Laravel Excel Style with CSS not working while exporting view

。_饼干妹妹 提交于 2021-02-11 12:25:21
问题 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: <?php namespace App\Exports; use Illuminate\Contracts\View\View; use Maatwebsite\Excel\Concerns\FromView; use Maatwebsite\Excel\Concerns\WithEvents; use Maatwebsite\Excel\Concerns\RegistersEventListeners; use Maatwebsite\Excel\Events\AfterSheet; class MatrixExcelExport implements FromView, WithEvents { use RegistersEventListeners; protected $data,

How do I enable error reporting in Laravel?

自作多情 提交于 2021-02-08 15:02:07
问题 I'm using Laravel 5.2 and I'm trying to import an excel sheet which contains more than 18000 records. the error below appeared. The localhost page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500 I tried to change php.ini max_execution_time from 30 seconds to 300 seconds but nothing has been changed EDIT the apache error log file says: [:error] [pid 3680:tid 1724] [client ::1:54491] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to

How do I enable error reporting in Laravel?

妖精的绣舞 提交于 2021-02-08 15:01:26
问题 I'm using Laravel 5.2 and I'm trying to import an excel sheet which contains more than 18000 records. the error below appeared. The localhost page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500 I tried to change php.ini max_execution_time from 30 seconds to 300 seconds but nothing has been changed EDIT the apache error log file says: [:error] [pid 3680:tid 1724] [client ::1:54491] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to

How to export csv file with shift-jis encoding in laravel?

偶尔善良 提交于 2021-01-28 11:11:02
问题 I am using laravel-excel to export csv file. To export, the code is like below, return Excel::download(new Export(results,$header), "test.csv"); And the Export.php file is like, namespace App\AllClass; use Maatwebsite\Excel\Concerns\FromCollection; use Maatwebsite\Excel\Concerns\Exportable; use Maatwebsite\Excel\Concerns\WithHeadings; class Export implements FromCollection,WithHeadings { private $myArray; private $header; public function __construct($myArray,$header){ $this->myArray =

Cannot use object of type App\Exports\OffetTableExport as array - Laravel Excel

牧云@^-^@ 提交于 2021-01-05 08:57:41
问题 I am working on multiple sheets on laravel excel. And, I am exporting data on two sheets using two export. But, half of the data to pushed on 2nd sheets will be generated in 1st export. So I am having difficulties in passing this data from 1st expor to second sheets. This could be further clarified with the code given below: mainExport <?php namespace App\Exports; use Maatwebsite\Excel\Concerns\WithMultipleSheets; class FloorPlanExport implements WithMultipleSheets { protected $property,

how to process time taking request in laravel?

时光总嘲笑我的痴心妄想 提交于 2020-04-18 06:11:51
问题 I am trying to read data from excel file and and then store it in database. but there is problem . sometimes file has a lot of data nearly 20000 records. when I try to process that request with that much data it process for 2 to 3 minutes and enter around 13000 record in database and after that request got failed. here is what i am doing . this process gets completed in five functions every functions has it own job. Now, I think I should do it by queue but i have no idea how it will work

how to process time taking request in laravel?

自闭症网瘾萝莉.ら 提交于 2020-04-18 06:11:37
问题 I am trying to read data from excel file and and then store it in database. but there is problem . sometimes file has a lot of data nearly 20000 records. when I try to process that request with that much data it process for 2 to 3 minutes and enter around 13000 record in database and after that request got failed. here is what i am doing . this process gets completed in five functions every functions has it own job. Now, I think I should do it by queue but i have no idea how it will work