I'd like to do something ONLY if I'm in a dev environment.

Is the only way to do this:

        $env = Environment::get();

        if ($env == "dev") {

        }

Seems ooky to me. I'd rather have an $is_dev variable or something?

Answered by Jason Varga! Go to answer.