Skip to content

Commit b3a503a

Browse files
committed
Config to controllers when published command
1 parent 3e1c91c commit b3a503a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

config/chatify.php

+8-3
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,15 @@
9797

9898
/*
9999
|--------------------------------------------------------------------------
100-
| Set namespace to Controller when it's publish
100+
| Route's controllers namespace
101101
|--------------------------------------------------------------------------
102-
| Uncomment namespace to set config
102+
|
103+
| You may need to change the namespace of the route's controllers of
104+
| this package after publishing the 'controllers' asset, from the
105+
| default one to your App's controllers namespace.
106+
|
103107
| By default: Chatify\Http\Controllers
108+
|
104109
*/
105-
'namespace' => env('CHATIFY_NAMESPACE_CONTROLLER', 'Chatify\Http\Controllers'),
110+
'namespace' => env('CHATIFY_ROUTES_NAMESPACE', 'Chatify\Http\Controllers'),
106111
];

src/ChatifyServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private function routesConfigurations()
9393
{
9494
return [
9595
'prefix' => config('chatify.path'),
96-
'namespace' => config('chatify.namespace', 'Chatify\Http\Controllers'),
96+
'namespace' => config('chatify.namespace'),
9797
'middleware' => ['web', config('chatify.middleware')],
9898
];
9999
}

0 commit comments

Comments
 (0)