Last active
April 27, 2017 18:16
-
-
Save RocketFever22/97a30b73938e226be7cb60b5f8c7549f to your computer and use it in GitHub Desktop.
Laravel/Dusk instal step by step summary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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