I'm using this code :
<html>
<h1>{{ $report->title }}</h1>
<br/>
<h2>{{ $report->description }}</h2>
<br/>
<p>{{ __('excel.dateLabel') }} {{ $date }}</p>
<br/>
<table>
<thead>
<tr>
<th>{{ __('excel.firstColumn') }}</th>
<th>{{ __('excel.secondColumn') }}</th>
<th>{{ __('excel.thirdColumn') }}</th>
<th>{{ __('excel.fourthColumn') }}</th>
</tr>
</thead>
</table>
</html>
But when I would use class or style tag only background-color work. Color, font-weight.... not working.
<html>
<h1>{{ $report->title }}</h1>
<br/>
<h2>{{ $report->description }}</h2>
<br/>
<p>{{ __('excel.dateLabel') }} {{ $date }}</p>
<br/>
<table>
<thead>
<tr>
<th style="font-weight : bold">{{ __('excel.firstColumn') }}</th>
<th>{{ __('excel.secondColumn') }}</th>
<th>{{ __('excel.thirdColumn') }}</th>
<th>{{ __('excel.fourthColumn') }}</th>
</tr>
</thead>
</table>
</html>
3.0 doesn't support styling via blade views anymore. You should use PhpSpreadsheet method $worksheet->getStyle('B2:G8')
to accomplish this.
Read in our docs how to call PhpSpreadsheet methods: https://laravel-excel.maatwebsite.nl/docs/3.0/export/extending
@patrickbrouwers Using