public static function decodeSlug($slug){
		$hashids = static::getHashids();

		$decoded = $hashids->decode($slug);

		if(! isset($decoded[0])){
			return null;
		}

		return (int) $decoded[0];
	}
public static function decodeSlug($slug){
		$hashids = static::getHashids();

		$decoded = $hashids->decode($slug);

		if(! isset($decoded[0])){
			return null;
		}

		return (int) $decoded[0];
	}
public static function decodeSlug ( $ slug ) { $ hashids = static :: getHashids ( ) ; $ decoded = $ hashids -> decode ( $ slug ) ; if ( ! isset ( $ decoded [ 0 ] ) ) { return null ; } return ( int ) $ decoded [ 0 ] ; }
Decodes slug to id
@param  string $slug
@return int|null
Decodes slug to id