public function isMaintain()
    {
        if (file_exists(route()->root.'maintained')) {
            return true;
        } elseif (__config()->config->maintenance) {
            return true;
        } else {
            return false;
        }
    }
public function isMaintain()
    {
        if (file_exists(route()->root.'maintained')) {
            return true;
        } elseif (__config()->config->maintenance) {
            return true;
        } else {
            return false;
        }
    }
public function isMaintain ( ) { if ( file_exists ( route ( ) -> root . 'maintained' ) ) { return true ; } elseif ( __config ( ) -> config -> maintenance ) { return true ; } else { return false ; } }
Check is the site maintaince mode is enable.

@since 2.0.3

@return bool
Check is the site maintaince mode is enable .