I am using Laravel 5.2 and maatwebsite/excel 2.1, the issue is border line is not showing after setting background color, I have used the below code.
$excel->getActiveSheet()->setBorder('A1:' . $excel->getActiveSheet()->getHighestColumn() .
$excel->getActiveSheet()->getHighestRow(), 'thin');