enter image description here
https://medium.com/@rampukar/laravel-modules-nwidart-install-and-configuration-9e577218555c
Follow this steps it will work you have to enable "wikimedia/composer-merge-plugin" to true