Commit 6beaaad8 authored by Darron Park's avatar Darron Park

Add media support on @setting directive

parent ccfc2989
......@@ -36,6 +36,10 @@ class Settings implements Setting
return is_null($default) ? $defaultFromConfig : $default;
}
if($media = $setting->files()->first()) {
return $media->path;
}
if ($setting->isTranslatable) {
if ($setting->hasTranslation($locale)) {
return trim($setting->translate($locale)->value) === '' ? $defaultFromConfig : $setting->translate($locale)->value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment