where('key', $key); } public function scopeLocale($query, $lang) { return $query->whereLocale($lang); } public function getJsonValueAttribute($value) { return json_decode($value); } public function getAdditionalJsonValueAttribute($value) { return json_decode($value); } }