PHP code example of wthealth / laravel-enum-transformer
1. Go to this page and download the library: Download wthealth/laravel-enum-transformer library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wthealth / laravel-enum-transformer example snippets
final class UserType extends Enum
{
const Administrator = 0;
const Moderator = 1;
const Subscriber = 2;
const SuperAdministrator = 3;
}