documents
This commit is contained in:
@@ -25,4 +25,16 @@ public function fresh(): DocumentSetting
|
||||
{
|
||||
return $this->refresh();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience accessor for custom defaults.
|
||||
*
|
||||
* @return array<string,mixed>
|
||||
*/
|
||||
public function customDefaults(): array
|
||||
{
|
||||
$settings = $this->get();
|
||||
|
||||
return is_array($settings->custom_defaults ?? null) ? $settings->custom_defaults : [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user