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 2
2
3
3
return [
4
4
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
+
5
17
'presenter_namespace ' => 'App \\Presenters ' ,
6
18
];
Original file line number Diff line number Diff line change @@ -60,6 +60,10 @@ protected function resolveStubPath($stub)
60
60
*/
61
61
protected function getDefaultNamespace ($ rootNamespace )
62
62
{
63
- return $ rootNamespace . '\Presenters ' ;
63
+ $ configNamespace = config ('laravel-presenter.presenter_namespace ' );
64
+
65
+ return is_null ($ configNamespace )
66
+ ? $ rootNamespace . '\Presenters '
67
+ : $ configNamespace ;
64
68
}
65
69
}
You can’t perform that action at this time.
0 commit comments