put($x=Arr::get($fields,0),[ 'title'=>Arr::get($fields,1,$x), 'ref'=>Arr::get($fields,2), 'desc'=>Arr::get($fields,3,__('No description available, can you help with one?')), ]); } fclose($f); return $result; }); return Arr::get(($array ? $array->get($string) : []), $key, __('No description available, can you help with one?')); } public function __get(string $key): mixed { return match ($key) { // Schema items shouldnt have language tags, so our values should only have 1 key 'values'=>collect($this->values->first()), default => parent::__get($key), }; } public function render(bool $edit=FALSE,bool $old=FALSE,bool $new=FALSE): View { // @note Schema attributes cannot be edited return view('components.attribute.internal') ->with('o',$this); } }