Skip to content

Commit df2a62b

Browse files
authored
Merge pull request #143 from laravel/enabled
2 parents 384ffc5 + 9431b3b commit df2a62b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

config/boost.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
declare(strict_types=1);
44

55
return [
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
|--------------------------------------------------------------------------

src/BoostServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)