public static function isApiKeyUnique($key)
    {
        $model = static::whereApiKey($key)->first(['id']);

        return (empty($model)) ? true : false;
    }
public static function isApiKeyUnique($key)
    {
        $model = static::whereApiKey($key)->first(['id']);

        return (empty($model)) ? true : false;
    }
public static function isApiKeyUnique ( $ key ) { $ model = static :: whereApiKey ( $ key ) -> first ( [ 'id' ] ) ; return ( empty ( $ model ) ) ? true : false ; }
Checks to see if an API Key is uniques or not

@param $key string

@return bool
Checks to see if an API Key is uniques or not