mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-09 11:45:18 -05:00
20 lines
287 B
PHP
20 lines
287 B
PHP
<?php
|
|
|
|
namespace App\Enums\Auth;
|
|
|
|
use Spatie\Permission\Models\Role;
|
|
|
|
enum Roles: string
|
|
{
|
|
case Admin = 'admin';
|
|
|
|
case Moderator = 'moderator';
|
|
|
|
case Playtester = 'playtester';
|
|
|
|
public function getRole(): Role
|
|
{
|
|
return Role::findByName($this->value);
|
|
}
|
|
}
|