fix: replace deprecated starts_with() with str_starts_with()

The starts_with() helper was removed in Laravel 6. Use PHP 8's native
str_starts_with() instead.
pull/6873/head
Your Name 4 weeks ago
parent cf714c6fb7
commit 26b8a0a6b0

@ -38,7 +38,7 @@
<span class="d-inline-block text-truncate">
<p class="mb-0 small font-weight-bold text-primary">{{$appeal->type}}</p>
@if($appeal->item_type)
<p class="mb-0 font-weight-bold">{{starts_with($appeal->item_type, 'App\\') ? explode('\\',$appeal->item_type)[1] : $appeal->item_type}}</p>
<p class="mb-0 font-weight-bold">{{str_starts_with($appeal->item_type, 'App\\') ? explode('\\',$appeal->item_type)[1] : $appeal->item_type}}</p>
@endif
</span>
</div>

Loading…
Cancel
Save