This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I've started having an issue with the file structure that's created for new plugins. If I use artisan to create a new plugin, e.g.
php artisan create:plugin Foo.Bar
The plugin is created with the following file structure.
octobercms/plugins/foo/bar/foo/bar
Here's a screenshot from phpStorm.
It seems to be nesting itself... within itself.
Is anyone else having this issue and is there any fix for this?
Last updated
Yes I keep getting the same issue every now and then. Usually I can resolve it by doing this:
php artisan clear-compiled
composer dump-autoload
php artisan optimize
But sometimes, even this won't help. I just manually get the scaffolding right once it has been created byt the command. Every other command after that seems to work fine.
Yes, manually re-scaffolding the plugin after it's been created is what I've had to resort to. I tried your suggestion but it didn't work. Like you say, it's only the create:plugin
command that seems to cause this problem, the other commands work fine.
1-3 of 3