Created
July 14, 2022 15:31
-
-
Save richardDobron/3df1b1f099bea100f6585c74d76f10c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file is generated. Do not modify it manually! | |
* | |
* This file was generated by: | |
* php artisan make:enum App\Models\UserRoleTypes --model=UserRole --id=Id --slug=Slug --title=Role | |
* If there is a newer version, run: | |
* php artisan make:enum App\Models\UserRoleTypes --model=UserRole --id=Id --slug=Slug --title=Role --force | |
*/ | |
namespace App\Enums; | |
class UserRoleTypes | |
{ | |
public const MANAGER = 1; | |
public const CONTENT_CREATOR = 2; | |
public const MODERATOR = 3; | |
public const ADVERTISER = 4; | |
public const INSIGHTS_ANALYST = 5; | |
public static function map(): array | |
{ | |
return [ | |
static::MANAGER => 'Admin', | |
static::CONTENT_CREATOR => 'Editor', | |
static::MODERATOR => 'Moderator', | |
static::ADVERTISER => 'Advertiser', | |
static::INSIGHTS_ANALYST => 'Analyst', | |
]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment