- $ laravel new laravel55 --dev
- $ composer require laravel/homestead --dev # this gives per project homestead
- $ vendor\bin\homestead make # will create vagrant file
- $ vagrant up
- $ composer require laravel/dusk --dev
- add dusk provider in config using app service provider wrapped to run locally only
- $ php artisan dusk:install
- make sure app url is right as the child browser will use it
- cp vendor/laravel/dusk/stubs/phpunit.xml phpunit.dusk.xml #bug: laravel/dusk#316
- requires changing bootstrap/autoload to vendor/autoload.php
- $ php artisan dusk
- you may use per env dusk config, i.e. .env.dusk.{env}