Skip to content

Conversation

@ArthurPatriot
Copy link

@ArthurPatriot ArthurPatriot commented Oct 5, 2023

This pull request adds the make:enum Artisan command. As expected, to get started, you simply have to type:

php artisan make:enum UserTypeEnum

INFO: Enum [app/Enums/UserTypeEnum.php] created successful

Here are the contents of the app/Enums/UserTypeEnum.php file. It's a very simple php enum inside:

<?php

namespace App\Enums;

enum UserTypeEnum
{
    //
}

@taylorotwell
Copy link
Member

Thanks for your pull request to Laravel!

Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.

If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!

If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants