Skip to content

Instantly share code, notes, and snippets.

@RocketFever22
Last active April 27, 2017 18:16
Show Gist options
  • Save RocketFever22/97a30b73938e226be7cb60b5f8c7549f to your computer and use it in GitHub Desktop.
Save RocketFever22/97a30b73938e226be7cb60b5f8c7549f to your computer and use it in GitHub Desktop.
Laravel/Dusk instal step by step summary
This is a step by step summary of:
https://laravel.com/docs/5.4/dusk
1. $ composer require laravel/dusk
2. $ php artisan make:provider DuskServiceProvider
3. Inside app/Providers/DuskServiceProvider, register() method:
if ($this->app->environment('local', 'testing')) {
$this->app->register(DuskServiceProvider::class);
}
4. app/config/app.php -> providers array:
Laravel\Dusk\DuskServiceProvider::class,
5. .env -> APP_URL=[your local app url]
6. $ php artisan dusk:install
7. php artisan dusk -> Runs tests
Hope it helps!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment