added filter to collectifunction

This commit is contained in:
Godfrey M 2024-02-21 11:38:03 -08:00
parent bee016e0be
commit 14c86d447b

View file

@ -69,6 +69,7 @@ class LabelsController extends Controller
$customFieldColumns = CustomField::all()->pluck('db_column'); $customFieldColumns = CustomField::all()->pluck('db_column');
collect(explode(';', Setting::getSettings()->label2_fields)) collect(explode(';', Setting::getSettings()->label2_fields))
->filter()
->each(function ($item) use ($customFieldColumns, $exampleAsset) { ->each(function ($item) use ($customFieldColumns, $exampleAsset) {
$pair = explode('=', $item); $pair = explode('=', $item);