ProductionModeCheck
If | Then.... |
---|---|
Debug mode is enabled | 🚨 Fail |
App environment is not production | 🚨 Fail |
Expect a different environment​
By default, this check will expect the environment to be set to production
. If you want, you can look for a different environment value.
<?php
ProductionModeCheck::make()->environment('staging');