vendredi 23 juin 2017

Laravel Export data into Excel file need to be modified

what i want is need to download 2 user data tables data into one excel file. here is the download function for only one data table called registerdetails.

`public function export(){
    $items = registerdetails::all();
    Excel::create('General Trainee Details', function($excel) use($items){
    $excel->sheet('Sheet 1', function($sheet) use($items){

        $sheet->fromArray($items);

    });

})->export('xlsx');
}`

I need this controller to be modified get datas from registerdetails and bankdetails .if anyone can help me to get this solved?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2tCuYSK
via IFTTT

Aucun commentaire:

Enregistrer un commentaire