Hello Guys!
I'm trying to to simulate (on my tests) the application in production as follows and it's working perfectly:
// it works
$this->app->detectEnvironment(function () {
return 'staging';
});
In another scenario, you would need to test the application under maintenance. I used the same strategy but it doesn't work.
// does not work
$this->app->isDownForMaintenance(function () {
return true;
});
Could someone give me a light?