-
-
Notifications
You must be signed in to change notification settings - Fork 255
Open
Description
Hello,
It's possible to add $force params in flexible trait ?
public function flexible($attribute, $layoutMapping = [], $force = false)
{
$flexible = data_get($this->attributes, $attribute);
return $this->cast($flexible, $layoutMapping, $force);
}
public function cast($value, $layoutMapping = [], $force = false)
{
if (!$force && app()->getProvider(NovaServiceProvider::class) && ! app()->runningInConsole()) {
return $value;
}
return $this->toFlexible($value ?: null, $layoutMapping);
}Metadata
Metadata
Assignees
Labels
No labels