public static function ignoreif($callback)
    {
        if (is_callable($callback) === false) {
            throw new Exception('Invalid callback');
        }

        App::on('init', function () use ($callback) {
            if ($callback()) {
                App::env('maintenance', false);
            }
        });
    }
public static function ignoreif($callback)
    {
        if (is_callable($callback) === false) {
            throw new Exception('Invalid callback');
        }

        App::on('init', function () use ($callback) {
            if ($callback()) {
                App::env('maintenance', false);
            }
        });
    }
public static function ignoreif ( $ callback ) { if ( is_callable ( $ callback ) === false ) { throw new Exception ( 'Invalid callback' ) ; } App :: on ( 'init' , function ( ) use ( $ callback ) { if ( $ callback ( ) ) { App :: env ( 'maintenance' , false ) ; } } ) ; }
Up the site only in certain conditions, eg. the site administrator of the IP.

@param callable $callback
@return void
Up the site only in certain conditions eg . the site administrator of the IP .