8000 Remove TrustHosts reliance on config helper (#39294) · laravel/framework@a3e7f48 · GitHub
[go: up one dir, main page]

Skip to content

Commit a3e7f48

Browse files
authored
Remove TrustHosts reliance on config helper (#39294)
1 parent 161098d commit a3e7f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Http/Middleware/TrustHosts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function handle(Request $request, $next)
5555
*/
5656
protected function shouldSpecifyTrustedHosts()
5757
{
58-
return config('app.env') !== 'local' &&
58+
return ! $this->app->environment('local') &&
5959
! $this->app->runningUnitTests();
6060
}
6161

0 commit comments

Comments
 (0)
0