<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Config;
use Spatie\Permission\Models\Role as ModelsRole;

class Role extends ModelsRole
{
    use HasFactory;

    protected $table = 'spatie_roles';

    protected $fillable = ['name','guard_name'];

     public function statuses()
    {
        return $this->hasOne(Status::class, 'table_id', 'id');
    }
}

