Add optional() around aircraft info #824
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
</td>
|
||||
<td>
|
||||
@if($pirep->aircraft)
|
||||
{{ $pirep->aircraft->name }}
|
||||
{{ optional($pirep->aircraft)->name }}
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user