public static function exists($app = 'global', $key)
    {
        return ((new static())->where('app', $app)->where('key', $key)->where('value', true)->count() ? true : false);
    }
public static function exists($app = 'global', $key)
    {
        return ((new static())->where('app', $app)->where('key', $key)->where('value', true)->count() ? true : false);
    }
public static function exists ( $ app = 'global' , $ key ) { return ( ( new static ( ) ) -> where ( 'app' , $ app ) -> where ( 'key' , $ key ) -> where ( 'value' , true ) -> count ( ) ? true : false ) ; }
Checks if a permission exists.

@param  string $app
@param  string $key
@return boolean
Checks if a permission exists .