Normalise usage of Model into Model::class strings

This commit is contained in:
2023-05-05 16:29:08 +10:00
parent 820ff2be00
commit dc74a064ba
9 changed files with 18 additions and 18 deletions

View File

@@ -7,7 +7,7 @@
@php
$po = $selected = NULL;
@endphp
@foreach (\App\Models\Product::active()->get()->filter(function($item) { return get_class($item->type) === 'App\Models\Product\Broadband'; })->sortBy('name') as $o)
@foreach (\App\Models\Product::active()->get()->filter(function($item) { return get_class($item->type) === \App\Models\Product\Broadband::class; })->sortBy('name') as $o)
@php
if ($o->id == old('product_id')) {
$selected = 'selected';