File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 33declare (strict_types=1 );
44
55return [
6+ /*
7+ |--------------------------------------------------------------------------
8+ | Boost Master Switch
9+ |--------------------------------------------------------------------------
10+ |
11+ | This option may be used to disable all Boost functionality, which
12+ | simply provides a single and convenient way to enable or disable
13+ | Boost's AI development tools.
14+ |
15+ */
16+
17+ 'enabled ' => env ('BOOST_ENABLED ' , true ),
618
719 /*
820 |--------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ public function register(): void
5555
5656 public function boot (Router $ router ): void
5757 {
58+ if (! config ('boost.enabled ' , true )) {
59+ return ;
60+ }
61+
5862 // Only enable Boost on local environments
5963 if (! app ()->environment (['local ' , 'testing ' ]) && config ('app.debug ' , false ) !== true ) {
6064 return ;
You can’t perform that action at this time.
0 commit comments