Commit 1eacf7a3 authored by Darron Park's avatar Darron Park

Fix Setting Module typo

parent 1c60878c
......@@ -14,7 +14,7 @@ class Setting extends Model
protected $fillable = ['name', 'value', 'description', 'isTranslatable', 'plainValue'];
protected $table = 'setting__settings';
public function hasMedia(): boolean
public function hasMedia(): bool
{
$value = json_decode($this->plainValue, true);
return is_array($value) && isset($value['media_single']) && $setting->files->count();
......
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