Skip to content

Commit af57188

Browse files
committed
Restrict Dusk test routes to local and testing environments by default
1 parent 92a52f0 commit af57188

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DuskServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class DuskServiceProvider extends ServiceProvider
1414
*/
1515
public function boot()
1616
{
17-
if (! $this->app->environment('production')) {
17+
if ($this->app->environment(config('dusk.environments', ['local', 'testing']))) {
1818
Route::group(array_filter([
1919
'prefix' => config('dusk.path', '_dusk'),
2020
'domain' => config('dusk.domain', null),

0 commit comments

Comments
 (0)