Remove gender model

This commit is contained in:
philipp lang 2024-09-22 17:31:40 +02:00
parent 3f5321af9d
commit bc61530e51
1 changed files with 0 additions and 24 deletions

View File

@ -1,24 +0,0 @@
<?php
namespace App;
use App\Nami\HasNamiField;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Gender extends Model
{
use HasNamiField;
use HasFactory;
public $fillable = ['name', 'nami_id'];
public function getSalutationAttribute(): string
{
return match ($this->name) {
'Männlich' => 'Herr',
'Weiblich' => 'Frau',
default => ''
};
}
}