maatwebsite-excel

Failed to load excel\laravel-excel

六月ゝ 毕业季﹏ 提交于 2021-01-29 15:14:07
问题 I want to export only filtered data in view blade. I am using Laravel 7 and maatwebsite/excel 3.1 and PHP 7.4.2. I went through the documentation and applied this: View <a href="{!! route('users.export-filter') !!}" class="btn btn-success"> <i class="la la-download"></i> Export Filter </a> web.php Route::get('/users/export-filter', 'Admin\UserController@filter')->name('users.export-filter'); UserController.php public function filter() { return Excel::download(new FilterUserExport, 'filter

How to use time format excel cell in laravel uploaded excel?

こ雲淡風輕ζ 提交于 2021-01-29 02:53:32
问题 i am using laravel package maatwebsite/excel version 3.1 for excel file upload. $collection = Excel::toCollection(new UsersImport, storage_path('app/' . $newFile)); i have uploaded a file where the format of cell is time. Here time in and time out cell has time format. when i upload this file the resulting output is: in resulting output time in and time out cells data is converted into string. how to prevent this from converting or how to change this from text to time? 回答1: You need to

How to use time format excel cell in laravel uploaded excel?

一个人想着一个人 提交于 2021-01-29 02:45:36
问题 i am using laravel package maatwebsite/excel version 3.1 for excel file upload. $collection = Excel::toCollection(new UsersImport, storage_path('app/' . $newFile)); i have uploaded a file where the format of cell is time. Here time in and time out cell has time format. when i upload this file the resulting output is: in resulting output time in and time out cells data is converted into string. how to prevent this from converting or how to change this from text to time? 回答1: You need to

How to skip blank rows in maatwebsite-excel 3.1 for model-way import on Laravel

爱⌒轻易说出口 提交于 2020-12-14 11:06:05
问题 I'm working on laravel project with maatwebsite-exvel 3.1 to import excel file from file uploding method. This is my StudentsImport class. public function model(array $row) { return new Student([ 'school_uuid' => Auth::user()->school_uuid, 'cardid' => $row[0], 'prefix' => $row[1], 'name' => $row[2], 'lastname' => $row[3], 'dob' => $row[4], 'address' => $row[5], 'phone' => $row[6], ]); } And below is controller. Excel::import(new StudentsImport, $request->file('file')); Code work fine. I can

Argument 2 passed to Maatwebsite\Excel\Excel::download() must be of the type string, object given

人走茶凉 提交于 2020-08-11 04:59:34
问题 Argument 2 passed to Maatwebsite\Excel\Excel::download() must be of the type string, object given, called in C:\xampp\htdocs\student_route\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php on line 237 public function excel_report() { $student_data = DB::table('student_details')->get()->toArray(); $student_array[] = array('Name', 'Address', 'Roll No', 'Class'); foreach($student_data as $student) { $student_array[] = array( 'Student Name' => $student->st_name, 'Address' =>

outline border not working in laravel excel

谁说胖子不能爱 提交于 2020-05-14 09:50:10
问题 In laravel excel I used outline border for table but it not work proper for merged cell.Outline border missing where cell merged in table. $cellStyle = array( 'borders' => array( 'outline' => array( 'style' => PHPExcel_Style_Border::BORDER_THICK ) ) ); 来源: https://stackoverflow.com/questions/60983946/outline-border-not-working-in-laravel-excel

outline border not working in laravel excel

十年热恋 提交于 2020-05-14 09:48:30
问题 In laravel excel I used outline border for table but it not work proper for merged cell.Outline border missing where cell merged in table. $cellStyle = array( 'borders' => array( 'outline' => array( 'style' => PHPExcel_Style_Border::BORDER_THICK ) ) ); 来源: https://stackoverflow.com/questions/60983946/outline-border-not-working-in-laravel-excel

outline border not working in laravel excel

萝らか妹 提交于 2020-05-14 09:48:14
问题 In laravel excel I used outline border for table but it not work proper for merged cell.Outline border missing where cell merged in table. $cellStyle = array( 'borders' => array( 'outline' => array( 'style' => PHPExcel_Style_Border::BORDER_THICK ) ) ); 来源: https://stackoverflow.com/questions/60983946/outline-border-not-working-in-laravel-excel