You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using artisan stub:publish, you can publish the stubs used by the various make:* commands of the framework. Some commands, however, ignore custom stubs, and none are published for them either.
This seems to be an oversight: We should be able to use a custom stub for those classes, too.
These steps may be repeated with any of the commands listed above.
I'll gladly submit a PR, unless this behavior is intentional for some reason. In general, I believe the resolveStubPath method employed by some make commands should be moved into GeneratorCommand, so all generators may resolve stubs uniformly.
The text was updated successfully, but these errors were encountered:
This seems like a feature request. Feel free to submit a PR. Please be aware that some stubs have been rejected in the past. Search for these PR's before submitting. Thanks
Description:
Using
artisan stub:publish
, you can publish the stubs used by the variousmake:*
commands of the framework. Some commands, however, ignore custom stubs, and none are published for them either.This seems to be an oversight: We should be able to use a custom stub for those classes, too.
Commands disregarding custom stubs
make:channel
make:component
make:event
make:exception
make:notification
make:listener
make:mail
make:provider
Steps To Reproduce:
php artisan stub:publish
./stubs/notification.stub
and./stubs/markdown-notification.stub
notification.stub
manually:touch ./stubs/notification.stub
php artisan make:notification
src/Illuminate/Foundation/Console/stubs/notification.stub
These steps may be repeated with any of the commands listed above.
I'll gladly submit a PR, unless this behavior is intentional for some reason. In general, I believe the
resolveStubPath
method employed by some make commands should be moved intoGeneratorCommand
, so all generators may resolve stubs uniformly.The text was updated successfully, but these errors were encountered: