Skip to content

[9.x] Add inbound option to CastMakeCommand - #41838

Merged
taylorotwell merged 2 commits into
laravel:9.xfrom
smokills:feature/make-inbound-cast-option
Apr 5, 2022
Merged

[9.x] Add inbound option to CastMakeCommand#41838
taylorotwell merged 2 commits into
laravel:9.xfrom
smokills:feature/make-inbound-cast-option

Conversation

@smokills

@smokills smokills commented Apr 5, 2022

Copy link
Copy Markdown
Contributor

Hi all! It's me, again.

I know, maybe 3 PR in a so short time is too much, but I'm working on a quite big project, and while I'm developing features, I'm also trying to find some little common patterns that maybe can be helpful to the rest of the community as well. One of those is the ability to generate inbound cast classes with the make:cast command. I saw that previously someone tried to add this feature, but the PR wasn't merged.

I'm finding this, in my case obviously, very helpful, because I'm using a lot of Inbound Casts, and maybe someone else could benefit from this.

I also tried to write tests, but I didn't manage to find where the tests for generators commands are. So if you are going to merge this, I will be grateful if you can suggest to me where to find them.

Thanks a lot again for your time!

@smokills smokills changed the title feat: add inbound option to CastMakeCommand [9.x] Add inbound option to CastMakeCommand Apr 5, 2022
@taylorotwell
taylorotwell merged commit 8d38396 into laravel:9.x Apr 5, 2022
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