<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Label extends Model
{
    protected $guarded = [];

    public function getNameAttribute(): string
    {
        return $this->{'name_' . app()->getLocale()};
    }
}
