Weird syntax in layout.blade.php. Change the use of 'or' operator to the null coalesce operator (#6240)

This commit is contained in:
Ivan Nieto 2018-09-27 00:33:34 -05:00 committed by snipe
parent 16e56646b8
commit 309f102745

View file

@ -31,7 +31,7 @@
<tr> <tr>
<td align="center"> <td align="center">
<table class="content" width="100%" cellpadding="0" cellspacing="0"> <table class="content" width="100%" cellpadding="0" cellspacing="0">
{{ $header or '' }} {{ $header ?? '' }}
<!-- Email Body --> <!-- Email Body -->
<tr> <tr>
@ -42,14 +42,14 @@
<td class="content-cell"> <td class="content-cell">
{{ Illuminate\Mail\Markdown::parse($slot) }} {{ Illuminate\Mail\Markdown::parse($slot) }}
{{ $subcopy or '' }} {{ $subcopy ?? '' }}
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
{{ $footer or '' }} {{ $footer ?? '' }}
</table> </table>
</td> </td>
@ -57,3 +57,4 @@
</table> </table>
</body> </body>
</html> </html>