Artisan command that generates interfaces #40857
Replies: 3 comments 2 replies
-
What is the benefit over just creating the interface file? |
Beta Was this translation helpful? Give feedback.
-
Hello @Frank-Landry That's a good thought process and I agree. See if you can follow these steps and then customize it to your liking. It gives you a thread to pull on. |
Beta Was this translation helpful? Give feedback.
-
Since this is supposed to be integrated with Laravel functionality, shouldn't the naming be "contract" instead of "interface", since that's the term, Laravel uses instead of the PHP one. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello team.
My idea that I would like feedback on is this:
An artisan command that would help to generate interfaces.
For example:
php artisan make:interface SomeInterface
and it would ask you a series of questions to help generate the interface like so:
If yes, loop and ask these questions, otherwise quit out and write the file and template:
This is my first time asking about one of my ideas. I accept any and all feedback whether it's good or bad or constructive or mean.
Beta Was this translation helpful? Give feedback.
All reactions