Model can now resolve this for us
This commit is contained in:
parent
9ff62d02b7
commit
8c41bc181e
|
|
@ -125,15 +125,8 @@ abstract class FormWidgetBase extends WidgetBase
|
|||
*/
|
||||
public function resolveModelAttribute($attribute)
|
||||
{
|
||||
$model = $this->model;
|
||||
$parts = Str::evalHtmlArray($attribute);
|
||||
$last = array_pop($parts);
|
||||
|
||||
foreach ($parts as $part) {
|
||||
$model = $model->{$part};
|
||||
}
|
||||
|
||||
return [$model, $last];
|
||||
return $this->model->resolveAttribute($parts);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue