Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Add ability to make cast with custom stub file #34930

Merged

Conversation

StefanoDucciConvenia
Copy link
Contributor

When working with Stub files I noticed that the command make:cast does not have the possibility of use a stub custom file.

This pr adds the ability to edit and customize the default state of cast.stub file.

@StefanoDucciConvenia StefanoDucciConvenia changed the title [8.x] Add ability to make cast with custom stub path [8.x] Add ability to make cast with custom stub file Oct 22, 2020
@taylorotwell
Copy link
Member

What did you want to modify in the cast stub?

@StefanoDucciConvenia
Copy link
Contributor Author

What did you want to modify in the cast stub?

In one of my projects, I don't use the Eloquent\Model to extends my Models because I use a MongoDB database, so I want to change the $model parameter's type.

And the possibility of customize the Stub like the others MakeCommands can do, will minimize the number of extensions for this class.

@taylorotwell taylorotwell merged commit 1124f2a into laravel:8.x Oct 22, 2020
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