How to change db username and password in Laravel Sail?

In order to update db credentials in Laravel sail change you .env file with new credentials and run following commands:

# bring the sail down
sail down -v

# remove cache and re-build
sail build --no-cache

# bring the sail up
sail up -d