Skip to content

Commit 35ee607

Browse files
authored
Merge pull request #64 from laravel/fix-not-booting-in-some-environments
fix #53 - make sure we boot our service provider on local envs
2 parents 26deda1 + c4d9fd2 commit 35ee607

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
</testsuites>
1414
<php>
1515
<env name="APP_KEY" value="base64:uz4B1RtFO57QGzbZX1kRYX9hIRB50+QzqFeg9zbFJlY="/>
16+
<env name="APP_DEBUG" value="true"/>
1617
</php>
1718
</phpunit>

src/BoostServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function register(): void
5555

5656
public function boot(Router $router): void
5757
{
58-
if (! app()->environment('local', 'testing')) {
58+
if (config('app.debug', false) !== true) {
5959
return;
6060
}
6161

0 commit comments

Comments
 (0)