<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

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

    public function getNameAttribute(): ?string
    {
        return $this->attributes['name'] ?? $this->attributes['role'] ?? null;
    }
}
