We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b9074d + 37f3fbb commit 51b74afCopy full SHA for 51b74af
1 file changed
src/SupportServiceProvider.php
@@ -115,7 +115,7 @@ protected function bootEvents()
115
*/
116
protected function registerRoutes()
117
{
118
- if (! $this->app->routesAreCached()) {
+ if ( ! $this->app->routesAreCached() && config('leo.allowed_routes.support', true) ) {
119
$this->app['router']
120
->namespace('NextDeveloper\Support\Http\Controllers')
121
->group(__DIR__.DIRECTORY_SEPARATOR.'Http'.DIRECTORY_SEPARATOR.'api.routes.php');
0 commit comments