Remove gender model
This commit is contained in:
parent
3f5321af9d
commit
bc61530e51
|
@ -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 => ''
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue