Closed RealMrHex closed 7 months ago
nope it hasen't created the paths that have been turned off apart from when they exist in the stubs section:
'stubs' => [
'enabled' => false,
'path' => base_path('vendor/nwidart/laravel-modules/src/Commands/stubs'),
'files' => [
'routes/web' => 'routes/web.php',
'routes/api' => 'routes/api.php',
'views/index' => 'resources/views/index.blade.php',
'views/master' => 'resources/views/layouts/master.blade.php',
'scaffold/config' => 'config/config.php',
'composer' => 'composer.json',
'assets/js/app' => 'resources/assets/js/app.js',
'assets/sass/app' => 'resources/assets/sass/app.scss',
'vite' => 'vite.config.js',
'package' => 'package.json',
],
If I comment out these:
'files' => [
//'routes/web' => 'routes/web.php',
//'routes/api' => 'routes/api.php',
//'views/index' => 'resources/views/index.blade.php',
//'views/master' => 'resources/views/layouts/master.blade.php',
//'scaffold/config' => 'config/config.php',
'composer' => 'composer.json',
//'assets/js/app' => 'resources/assets/js/app.js',
//'assets/sass/app' => 'resources/assets/sass/app.scss',
//'vite' => 'vite.config.js',
//'package' => 'package.json',
],
then generated will be:
The RouteServiceProvider will be generated with the ModuleServiceProvider if you don't want the route you can delete the file and delete from the register method of the moduleserviceprovider
@dcblogdev ok then, t.y.
hey, i just set everything in the generator array of config file to false
then, created a module named Foo, here is the result:
looks like the config file is fully ignored.
also, i do not need the RouteServiceProvider in my modules, why there is nothing to customize it?