File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 22
33return [
44
5+ /*
6+ |--------------------------------------------------------------------------
7+ | Presenter Namespace
8+ |--------------------------------------------------------------------------
9+ |
10+ | This value informs LaravelPresenter which namespace you will be
11+ | selecting to store your presenters by default.
12+ | If this value equals to null, "App\Presenter" will be used
13+ | by default.
14+ |
15+ */
16+
517 'presenter_namespace ' => 'App \\Presenters ' ,
618];
Original file line number Diff line number Diff line change @@ -60,6 +60,10 @@ protected function resolveStubPath($stub)
6060 */
6161 protected function getDefaultNamespace ($ rootNamespace )
6262 {
63- return $ rootNamespace . '\Presenters ' ;
63+ $ configNamespace = config ('laravel-presenter.presenter_namespace ' );
64+
65+ return is_null ($ configNamespace )
66+ ? $ rootNamespace . '\Presenters '
67+ : $ configNamespace ;
6468 }
6569}
You can’t perform that action at this time.
0 commit comments