1 | <?php |
||
2 | |||
3 | namespace App\Models\Skills; |
||
4 | |||
5 | use Backpack\CRUD\app\Models\Traits\CrudTrait; |
||
6 | use Illuminate\Database\Eloquent\Model; |
||
7 | use Spatie\Translatable\HasTranslations; |
||
8 | |||
9 | /** |
||
10 | * @mixin IdeHelperSkillScale |
||
11 | */ |
||
12 | class SkillScale extends Model |
||
13 | { |
||
14 | use CrudTrait; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
15 | use HasTranslations; |
||
16 | |||
17 | protected $guarded = ['id']; |
||
18 | |||
19 | public array $translatable = ['shortname', 'name']; |
||
20 | |||
21 | protected $appends = ['scale_name']; |
||
22 | |||
23 | public function getScaleNameAttribute() |
||
24 | { |
||
25 | return $this->name; |
||
26 | } |
||
27 | } |
||
28 |