/
home
/
sjslayjy
/
public_html
/
assets
/
app
/
Exports
/
Upload File
HOME
<?php namespace App\Exports; use App\User; use Illuminate\Contracts\View\View; use Maatwebsite\Excel\Concerns\FromView; use Maatwebsite\Excel\Concerns\WithColumnFormatting; use Maatwebsite\Excel\Concerns\WithColumnWidths; use DB; class StrExport implements FromView, WithColumnFormatting, WithColumnWidths { public $strs; function __construct($strs = null) { $this->strs = $strs; } public function columnFormats(): array { return [ 'O' => '@', ]; } public function columnWidths(): array { return [ 'O' => 40, ]; } public function view(): View { return view('exports.strs', [ 'strs' => $this->strs, 'str_no'=> '' ]); } }