public static function isActive($guard = "admin")
    {
        if (Auth::guard($guard)->check()) {
            return Auth::user()->isActive;
        }
        return false;
    }
public static function isActive($guard = "admin")
    {
        if (Auth::guard($guard)->check()) {
            return Auth::user()->isActive;
        }
        return false;
    }
public static function isActive ( $ guard = "admin" ) { if ( Auth :: guard ( $ guard ) -> check ( ) ) { return Auth :: user ( ) -> isActive ; } return false ; }
Returns if a logged in user is active or no.
Returns if a logged in user is active or no .