2025-10-22 17:09:48 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
|
|
|
|
|
|
class MemberGroup extends Model
|
|
|
|
|
{
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'name',
|
2025-10-22 18:04:34 +02:00
|
|
|
'description',
|
|
|
|
|
'identifier'
|
2025-10-22 17:09:48 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public static function getAttributeLabel(string $attribute): string
|
|
|
|
|
{
|
|
|
|
|
return __('member_groups.fields.' . $attribute);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function members(): HasMany
|
|
|
|
|
{
|
|
|
|
|
return $this->hasMany(Member::class);
|
|
|
|
|
}
|
|
|
|
|
}
|