Skip to main content

ProductionModeCheck

IfThen....
Debug mode is enabled🚨 Fail
App environment is not production🚨 Fail

👀 View source on Github

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');