removes spacing

This commit is contained in:
Godfrey M 2024-02-15 13:00:38 -08:00
parent 83474d6e59
commit dc77c01fd3

View file

@ -27,6 +27,7 @@ class LabelsController extends Controller
public function show(string $labelName)
{
$setting = Setting::getSettings();
//grabs the field selection selected and turns it into a multidimensional array
$data = explode(';', Setting::getSettings()->label2_fields);
$data = array_map(function($element) {
@ -80,8 +81,6 @@ class LabelsController extends Controller
$exampleAsset->model->category->name = trans('admin/labels/table.example_category');
}
foreach($field_selections as $key => $value) {
$exampleAsset->{$value} = "{{$key}}";
}