Employers are not legally obligated to provide a reference, positive or otherwise, after you resign. It's always best to maintain a good relationship with your employer, especially your direct managers, throughout your resignation to increase your chances of getting a positive reference.