Skip to content

Commit 55a0607

Browse files
committed
add note
1 parent 60e589a commit 55a0607

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

dusk.md

+3-15
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,11 @@ To get started, you should add the `laravel/dusk` Composer dependency to your pr
4141

4242
composer require --dev laravel/dusk
4343

44-
Once Dusk is installed, you should register the `Laravel\Dusk\DuskServiceProvider` service provider. You should register the provider within the `register` method of your `AppServiceProvider` in order to limit the environments in which Dusk is available, since it exposes the ability to log in as other users:
44+
> {note} You should never install Dusk in a production environment. Otherwise, anyone may be able to gain unauthorized access to your application.
4545
46-
use Laravel\Dusk\DuskServiceProvider;
46+
Once Dusk is installed, you should register the `Laravel\Dusk\DuskServiceProvider` service provider. Typically, this will be done automatically via Laravel's automatic service provider registration.
4747

48-
/**
49-
* Register any application services.
50-
*
51-
* @return void
52-
*/
53-
public function register()
54-
{
55-
if ($this->app->environment('local', 'testing')) {
56-
$this->app->register(DuskServiceProvider::class);
57-
}
58-
}
59-
60-
Next, run the `dusk:install` Artisan command:
48+
After installing the Dusk package, run the `dusk:install` Artisan command:
6149

6250
php artisan dusk:install
6351

0 commit comments

Comments
 (0)