In my controller I have the code as below:
Excel::create('Laravel Excel', function($excel) {
$excel->sheet('Excel sheet', function($sheet) {
$sheet->setOrientation('landscape');
});
})->export('xls');
In config/app.php in aliases array i have defined this:
'Excel' => 'Maatwebsite\Excel\ExcelServiceProvider',
I dont know why i cant make it work this library... Any idea?
composer dump
fromterminal/command prompt
to update theautoloader
? – Richard