* @Then I can do something with Laravel
public function iCanDoSomethingWithLaravel()
Console output after running behat
Scenario: Dashboard is locked to guests
And I can do something with Laravel # FeatureContext::iCanDoSomethingWithLaravel()
Failed asserting that two strings are equal.
If you are using Laravel Homestead, the issue isn't with it reading the
.env file, more that it is reading it from the default
APP_ENV set in your
homestead.yaml file. Take the
APP_ENV variable out of your
homestead.yaml file and then re-provision your homestead box and it should work fine.
These are the offending lines in your
- key: APP_ENV value: local
I have literally just encountered the same issue and this is what fixed it for me.