Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
'channels' => ['path' => 'app/Broadcasting', 'generate' => false],
'class' => ['path' => 'app/Classes', 'generate' => false],
'command' => ['path' => 'app/Console', 'generate' => false],
'component-class' => ['path' => 'app/View/Components', 'generate' => false],
'component-class' => ['path' => 'View/Components', 'generate' => false],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are expected to change the value to whatever you wish in your published config file.

This default follows Laravel's standard structure and should remain unchanged.

'emails' => ['path' => 'app/Emails', 'generate' => false],
'event' => ['path' => 'app/Events', 'generate' => false],
'enums' => ['path' => 'app/Enums', 'generate' => false],
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/stubs/scaffold/provider.stub
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class $CLASS$ extends ServiceProvider

$this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$sourcePath]), $this->nameLower);

$componentNamespace = $this->module_namespace($this->name, $this->app_path(config('modules.paths.generator.component-class.path')));
$componentNamespace = $this->module_namespace($this->name, config('modules.paths.generator.component-class.path'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are expected to change the value to whatever you wish in your published config file.

The default follows Laravel's structure, but $this->app_path() does not enforce app/. You can leave it empty or set any value through the config.

Blade::componentNamespace($componentNamespace, $this->nameLower);
}

Expand Down
Loading