src/Maintenance/Maintenance.php
public static function check()
    {
        $route = isset($_GET['_framework_url_']) ? $_GET['_framework_url_'] : '';

        $out = config('maintenance.out', []);

        $out[] = config('panel.route', 'vinala');

        if (config('panel.setup', true)) {
            if (config('maintenance.enabled', false) && !in_array($route, $out)) {
                return static::$enabled = true;
            }
        }

        return static::$enabled = false;
    }
public static function check()
    {
        $route = isset($_GET['_framework_url_']) ? $_GET['_framework_url_'] : '';

        $out = config('maintenance.out', []);

        $out[] = config('panel.route', 'vinala');

        if (config('panel.setup', true)) {
            if (config('maintenance.enabled', false) && !in_array($route, $out)) {
                return static::$enabled = true;
            }
        }

        return static::$enabled = false;
    }
public static function check ( ) { $ route = isset ( $ _GET [ '_framework_url_' ] ) ? $ _GET [ '_framework_url_' ] : '' ; $ out = config ( 'maintenance.out' , [ ] ) ; $ out [ ] = config ( 'panel.route' , 'vinala' ) ; if ( config ( 'panel.setup' , true ) ) { if ( config ( 'maintenance.enabled' , false ) && ! in_array ( $ route , $ out ) ) { return static :: $ enabled = true ; } } return static :: $ enabled = false ; }
Check if the app is under maintenance.

@return bool
Check if the app is under maintenance .