src/Pagination/Cursor.php
public static function decode(array $args): int
    {
        if ($cursor = Arr::get($args, 'after')) {
            return (int) base64_decode($cursor);
        }

        return 0;
    }
public static function decode(array $args): int
    {
        if ($cursor = Arr::get($args, 'after')) {
            return (int) base64_decode($cursor);
        }

        return 0;
    }
public static function decode ( array $ args ) : int { if ( $ cursor = Arr :: get ( $ args , 'after' ) ) { return ( int ) base64_decode ( $ cursor ) ; } return 0 ; }
Decode cursor from query arguments.

If no 'after' argument is provided or the contents are not a valid base64 string,
this will return 0. That will effectively reset pagination, so the user gets the
first slice.

@param  array  $args
@return int
Decode cursor from query arguments .