--- /dev/null
+<?php
+
+
+namespace Cubist\Backpack\app\Magic\Fields;
+
+
+class ModelAttribute extends StaticValue
+{
+ public function filterValue($value)
+ {
+ $a = $this->getAttribute('attributes');
+ }
+}
protected $_translatable = false;
protected $_viewNamespace = CubistBackpackServiceProvider::NAMESPACE . '::fields';
+ public function filterValue($value)
+ {
+ return $this->getAttribute('value');
+ }
}
@include('crud::fields.inc.wrapper_start')
<label>{!! $field['label'] !!}</label>
@include('crud::fields.inc.translatable_icon')
-
-@if(isset($field['prefix']) || isset($field['suffix'])) <div class="input-group"> @endif
- {{ old(square_brackets_to_dots($field['name'])) ?? $field['value'] ?? $field['default'] ?? '' }}"
+<div>{{ old(square_brackets_to_dots($field['name'])) ?? $field['value'] ?? $field['default'] ?? '' }}</div>
{{-- HINT --}}
@if (isset($field['hint']))
<p class="help-block">{!! $field['hint'] !!}</p>