shell bypass 403
<?php
namespace App\Exports;
use Illuminate\Contracts\View\View;
use Maatwebsite\Excel\Concerns\FromView;
use Maatwebsite\Excel\Concerns\ShouldAutoSize;
use Maatwebsite\Excel\Concerns\WithColumnWidths;
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
use Maatwebsite\Excel\Concerns\WithStyles;
use Maatwebsite\Excel\Concerns\WithTitle;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
class SampleOrgStudent implements WithMultipleSheets, FromView, WithTitle,WithStyles,WithColumnWidths
{
public function sheets(): array
{
$sheets = [];
$sheets[] = new SampleOrgStudent();
$sheets[] = new OrgStudentGuideline();
return $sheets;
}
public function view(): View
{
return view('org::exports.sample-student');
}
public function title(): string
{
return 'Import';
}
public function styles(Worksheet $sheet)
{
return [
1 => ['font' => ['bold' => true]],
];
}
public function columnWidths(): array
{
return [
'A' => 20,
'B' => 20,
'C' => 20,
'D' => 20,
'E' => 20,
'F' => 20,
'G' => 20,
'H' => 20,
'I' => 20,
'J' => 20,
];
}
}