public function setEnvironment($environment = '')
    {
        // Set the application environment
        $environment = ($environment ?: strtolower(getenv('APPLICATION_ENV')));
        $environment = ($environment ?: 'default');

        // Set the application environment
        $this->set('env', $environment);

        return $this;
    }
public function setEnvironment($environment = '')
    {
        // Set the application environment
        $environment = ($environment ?: strtolower(getenv('APPLICATION_ENV')));
        $environment = ($environment ?: 'default');

        // Set the application environment
        $this->set('env', $environment);

        return $this;
    }
public function setEnvironment ( $ environment = '' ) { // Set the application environment $ environment = ( $ environment ? : strtolower ( getenv ( 'APPLICATION_ENV' ) ) ) ; $ environment = ( $ environment ? : 'default' ) ; // Set the application environment $ this -> set ( 'env' , $ environment ) ; return $ this ; }
Set the application environment.

@param string $environment

@return $this
Set the application environment .